mirror of
https://github.com/vim/vim.git
synced 2025-09-24 03:44:06 -04:00
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
|
||||
))
|
||||
{
|
||||
|
@@ -753,6 +753,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
1882,
|
||||
/**/
|
||||
1881,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user