# HG changeset patch # User Christian Brabandt # Date 1464899407 -7200 # Node ID 847a709d04c1e065d52ef631963e477bf9573229 # Parent ff3b26303303564201f53e6d74deac33e73e9eb5 commit https://github.com/vim/vim/commit/b37662a0fbb952838fca87aff4d26b596030b67b Author: Bram Moolenaar Date: Thu Jun 2 22:18:47 2016 +0200 patch 7.4.1882 Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic. diff --git a/src/quickfix.c b/src/quickfix.c --- a/src/quickfix.c +++ b/src/quickfix.c @@ -643,9 +643,9 @@ qf_init_ext( discard = FALSE; linelen = (int)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 )) { diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -754,6 +754,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 1882, +/**/ 1881, /**/ 1880,