From b37662a0fbb952838fca87aff4d26b596030b67b Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Thu, 2 Jun 2016 22:18:47 +0200 Subject: patch 7.4.1882 Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic. --- src/quickfix.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/quickfix.c') diff --git a/src/quickfix.c b/src/quickfix.c index 5228c73e6..23b1705b3 100644 --- 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 )) { -- cgit v1.2.1