mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
updated for version 7.3.270
Problem: Illegal memory access. Solution: Swap conditions. (Dominique Pelle)
This commit is contained in:
parent
ea35ef6888
commit
1cb7e0976d
@ -6311,7 +6311,7 @@ line_count_info(line, wc, cc, limit, eol_size)
|
||||
*wc += words;
|
||||
|
||||
/* Add eol_size if the end of line was reached before hitting limit. */
|
||||
if (line[i] == NUL && i < limit)
|
||||
if (i < limit && line[i] == NUL)
|
||||
{
|
||||
i += eol_size;
|
||||
chars += eol_size;
|
||||
|
@ -709,6 +709,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
270,
|
||||
/**/
|
||||
269,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user