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:
parent
83e6d7ac6a
commit
b37662a0fb
@ -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
|
||||
))
|
||||
{
|
||||
|
@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1882,
|
||||
/**/
|
||||
1881,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user