From a86d8b4088d21b784c1b72a03db9c22dcae67d00 Mon Sep 17 00:00:00 2001 From: James McCoy Date: Mon, 12 Dec 2016 15:05:15 -0500 Subject: vim-patch:7.4.1882 Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic. https://github.com/vim/vim/commit/b37662a0fbb952838fca87aff4d26b596030b67b --- src/nvim/quickfix.c | 4 ++-- src/nvim/version.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 34918e4134..9703d8763a 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -556,9 +556,9 @@ qf_init_ext ( discard = false; linelen = STRLEN(IObuff); - if (linelen == IOSIZE - 1 && (IObuff[linelen - 1] != '\n' + if (linelen == IOSIZE - 1 && !(IObuff[linelen - 1] == '\n' #ifdef USE_CRNL - || IObuff[linelen - 1] != '\r' + || IObuff[linelen - 1] == '\r' #endif )) { // The current line exceeds IObuff, continue reading using growbuf diff --git a/src/nvim/version.c b/src/nvim/version.c index 692bbb27c8..17c1a85a95 100644 --- a/src/nvim/version.c +++ b/src/nvim/version.c @@ -558,7 +558,7 @@ static int included_patches[] = { // 1885 NA // 1884, // 1883 NA - // 1882, + 1882, 1881, // 1880 NA // 1879 NA -- cgit