From 3de33401324433b3a0ba3d217f0fae2fa3f6731f Mon Sep 17 00:00:00 2001 From: lonerover Date: Sat, 11 Mar 2017 18:09:15 +0800 Subject: vim-patch:7.4.2135 Problem: Various tiny issues. Solution: Update comments, white space, etc. https://github.com/vim/vim/commit/89eaa4185efacab253b23a182c1c8a7bbf1096c9 --- runtime/menu.vim | 2 +- src/nvim/diff.c | 2 +- src/nvim/version.c | 2 +- test/functional/legacy/080_substitute_spec.lua | 4 ++-- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/runtime/menu.vim b/runtime/menu.vim index 4971baa936..7cb530a331 100644 --- a/runtime/menu.vim +++ b/runtime/menu.vim @@ -2,7 +2,7 @@ " You can also use this as a start for your own set of menus. " " Maintainer: Bram Moolenaar -" Last Change: 2014 May 22 +" Last Change: 2016 Jul 27 " Note that ":an" (short for ":anoremenu") is often used to make a menu work " in all modes and avoid side effects from mappings defined by the user. diff --git a/src/nvim/diff.c b/src/nvim/diff.c index 5940dc55da..11ade20c1c 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -129,7 +129,7 @@ void diff_buf_add(buf_T *buf) } } - EMSGN(_("E96: Can not diff more than %" PRId64 " buffers"), DB_COUNT); + EMSGN(_("E96: Cannot diff more than %" PRId64 " buffers"), DB_COUNT); } /// Find buffer "buf" in the list of diff buffers for the current tab page. diff --git a/src/nvim/version.c b/src/nvim/version.c index c4d31c4abe..e39ba83e8b 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -305,7 +305,7 @@ static int included_patches[] = { // 2138 NA 2137, 2136, - // 2135, + 2135, 2134, // 2133 NA // 2132 NA diff --git a/test/functional/legacy/080_substitute_spec.lua b/test/functional/legacy/080_substitute_spec.lua index 1bdae9be59..6b4d82a4c0 100644 --- a/test/functional/legacy/080_substitute_spec.lua +++ b/test/functional/legacy/080_substitute_spec.lua @@ -1,5 +1,5 @@ --- Test for *sub-replace-special* and *sub-replace-expression* on substitue(). --- Test for submatch() on substitue(). +-- Test for *sub-replace-special* and *sub-replace-expression* on substitute(). +-- Test for submatch() on substitute(). -- Test for *:s%* on :substitute. local helpers = require('test.functional.helpers')(after_each) -- cgit From 6311ec3a633692dbc353c928c6c133d8204589d4 Mon Sep 17 00:00:00 2001 From: lonerover Date: Sat, 11 Mar 2017 18:31:46 +0800 Subject: vim-patch:7.4.2144 Problem: On MS-Windows quickix does not handle a line with 1023 bytes ending in CR-LF properly. Solution: Don't consider CR a line break. (Ken Takata) https://github.com/vim/vim/commit/796aa9c804f09276bd3cc45123f4a191a001dec2 --- src/nvim/quickfix.c | 27 ++++++++------------------- src/nvim/version.c | 2 +- 2 files changed, 9 insertions(+), 20 deletions(-) diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index c4b8d266cf..8406dfc157 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -564,11 +564,8 @@ static int qf_get_next_file_line(qfstate_T *state) bool discard = false; state->linelen = STRLEN(IObuff); - if (state->linelen == IOSIZE - 1 && !(IObuff[state->linelen - 1] == '\n' -#ifdef USE_CRNL - || IObuff[state->linelen - 1] == '\r' -#endif - )) { // NOLINT(whitespace/parens) + if (state->linelen == IOSIZE - 1 + && !(IObuff[state->linelen - 1] == '\n')) { // NOLINT(whitespace/parens) // The current line exceeds IObuff, continue reading using growbuf // until EOL or LINE_MAXLEN bytes is read. if (state->growbuf == NULL) { @@ -587,11 +584,7 @@ static int qf_get_next_file_line(qfstate_T *state) } state->linelen = STRLEN(state->growbuf + growbuflen); growbuflen += state->linelen; - if (state->growbuf[growbuflen - 1] == '\n' -#ifdef USE_CRNL - || state->growbuf[growbuflen - 1] == '\r' -#endif - ) { + if (state->growbuf[growbuflen - 1] == '\n') { break; } if (state->growbufsiz == LINE_MAXLEN) { @@ -609,11 +602,7 @@ static int qf_get_next_file_line(qfstate_T *state) // discard everything until EOL or EOF is reached. if (fgets((char *)IObuff, IOSIZE, state->fd) == NULL || STRLEN(IObuff) < IOSIZE - 1 - || IObuff[IOSIZE - 1] == '\n' -#ifdef USE_CRNL - || IObuff[IOSIZE - 1] == '\r' -#endif - ) { + || IObuff[IOSIZE - 1] == '\n') { break; } } @@ -655,12 +644,12 @@ static int qf_get_nextline(qfstate_T *state) if (state->linelen > 0 && state->linebuf[state->linelen - 1] == '\n') { state->linebuf[state->linelen - 1] = NUL; - } #ifdef USE_CRNL - if (state->linelen > 0 && state->linebuf[state->linelen - 1] == '\r') { - state->linebuf[state->linelen - 1] = NUL; - } + if (state->linelen > 1 && state->linebuf[state->linelen - 2] == '\r') { + state->linebuf[state->linelen - 2] = NUL; + } #endif + } remove_bom(state->linebuf); diff --git a/src/nvim/version.c b/src/nvim/version.c index e39ba83e8b..0eadd39182 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -296,7 +296,7 @@ static int included_patches[] = { 2147, 2146, // 2145 NA - // 2144, + 2144, 2143, 2142, 2141, -- cgit From 2ecab2193d6ea866be77588a80ce14669a008a7b Mon Sep 17 00:00:00 2001 From: lonerover Date: Sat, 11 Mar 2017 19:06:10 +0800 Subject: vim-patch:7.4.2151 Problem: Quickfix test fails on MS-Windows. Solution: Close the help window. (Christian Brabandt) https://github.com/vim/vim/commit/cf25fdb8f10a92b3bf9e295c466c1b69812b7886 --- src/nvim/testdir/test_quickfix.vim | 1 + src/nvim/version.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/src/nvim/testdir/test_quickfix.vim b/src/nvim/testdir/test_quickfix.vim index 50fe6ce977..39d0c5407a 100644 --- a/src/nvim/testdir/test_quickfix.vim +++ b/src/nvim/testdir/test_quickfix.vim @@ -389,6 +389,7 @@ endfunction function Test_helpgrep() call s:test_xhelpgrep('c') + helpclose call s:test_xhelpgrep('l') endfunc diff --git a/src/nvim/version.c b/src/nvim/version.c index 0eadd39182..a845600810 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -289,7 +289,7 @@ static int included_patches[] = { // 2154 NA // 2153 NA // 2152, - // 2151, + 2151, // 2150 NA 2149, 2148, -- cgit