]> granicus.if.org Git - vim/commitdiff
patch 7.4.1882 v7.4.1882
authorBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 20:18:47 +0000 (22:18 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 2 Jun 2016 20:18:47 +0000 (22:18 +0200)
Problem:    Check for line break at end of line wrong. (Dominique Pelle)
Solution:   Correct the logic.

src/quickfix.c
src/version.c

index 5228c73e6180c96cf5ed81756be390601685598f..23b1705b33411e0f1fec863a3bfb9902f5a5a5ef 100644 (file)
@@ -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
                        ))
            {
index 53f6098187bb7bdcd553c82b31404f4cf7bb2a3f..5a84b80fdcdf8da268c8710343397c834b19aba4 100644 (file)
@@ -753,6 +753,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1882,
 /**/
     1881,
 /**/