summaryrefslogtreecommitdiff
path: root/src/quickfix.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-06-02 22:18:47 +0200
committerBram Moolenaar <Bram@vim.org>2016-06-02 22:18:47 +0200
commitb37662a0fbb952838fca87aff4d26b596030b67b (patch)
tree10288eeb8d6bf230654f3cbf556d722cd4463b0e /src/quickfix.c
parent83e6d7ac6a1c2a0cb5ee6c8420a5dc792f1d5ffa (diff)
downloadvim-git-7.4.1882.tar.gz
patch 7.4.1882v7.4.1882
Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic.
Diffstat (limited to 'src/quickfix.c')
-rw-r--r--src/quickfix.c4
1 files changed, 2 insertions, 2 deletions
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
))
{