Mercurial > vim
comparison src/quickfix.c @ 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 | 543f068f3706 |
children | 692e156c7023 |
comparison
equal
deleted
inserted
replaced
9196:ff3b26303303 | 9197:847a709d04c1 |
---|---|
641 if (fgets((char *)IObuff, IOSIZE, fd) == NULL) | 641 if (fgets((char *)IObuff, IOSIZE, fd) == NULL) |
642 break; | 642 break; |
643 | 643 |
644 discard = FALSE; | 644 discard = FALSE; |
645 linelen = (int)STRLEN(IObuff); | 645 linelen = (int)STRLEN(IObuff); |
646 if (linelen == IOSIZE - 1 && (IObuff[linelen - 1] != '\n' | 646 if (linelen == IOSIZE - 1 && !(IObuff[linelen - 1] == '\n' |
647 #ifdef USE_CRNL | 647 #ifdef USE_CRNL |
648 || IObuff[linelen - 1] != '\r' | 648 || IObuff[linelen - 1] == '\r' |
649 #endif | 649 #endif |
650 )) | 650 )) |
651 { | 651 { |
652 /* | 652 /* |
653 * The current line exceeds IObuff, continue reading using | 653 * The current line exceeds IObuff, continue reading using |