Mercurial > vim
changeset 9197:847a709d04c1 v7.4.1882
commit https://github.com/vim/vim/commit/b37662a0fbb952838fca87aff4d26b596030b67b
Author: Bram Moolenaar <Bram@vim.org>
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.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 02 Jun 2016 22:30:07 +0200 |
parents | ff3b26303303 |
children | 6a664361561e |
files | src/quickfix.c src/version.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 )) {