mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -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:
parent
83e6d7ac6a
commit
b37662a0fb
@ -643,9 +643,9 @@ qf_init_ext(
|
|||||||
|
|
||||||
discard = FALSE;
|
discard = FALSE;
|
||||||
linelen = (int)STRLEN(IObuff);
|
linelen = (int)STRLEN(IObuff);
|
||||||
if (linelen == IOSIZE - 1 && (IObuff[linelen - 1] != '\n'
|
if (linelen == IOSIZE - 1 && !(IObuff[linelen - 1] == '\n'
|
||||||
#ifdef USE_CRNL
|
#ifdef USE_CRNL
|
||||||
|| IObuff[linelen - 1] != '\r'
|
|| IObuff[linelen - 1] == '\r'
|
||||||
#endif
|
#endif
|
||||||
))
|
))
|
||||||
{
|
{
|
||||||
|
@ -753,6 +753,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
1882,
|
||||||
/**/
|
/**/
|
||||||
1881,
|
1881,
|
||||||
/**/
|
/**/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user