forked from aniani/vim
patch 7.4.1882
Problem: Check for line break at end of line wrong. (Dominique Pelle) Solution: Correct the logic.
This commit is contained in:
@@ -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
|
||||
))
|
||||
{
|
||||
|
Reference in New Issue
Block a user