1
0
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:
Bram Moolenaar 2016-06-02 22:18:47 +02:00
parent 83e6d7ac6a
commit b37662a0fb
2 changed files with 4 additions and 2 deletions

View File

@ -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
))
{

View File

@ -753,6 +753,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
1882,
/**/
1881,
/**/