0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.1.1833: allocating a bit too much when there is no bad word.

Problem:    Allocating a bit too much when spellbadword() does not find a bad
            word.
Solution:   Reset "len" when going to the next word. (Daniel Hahler,
            closes #4788)
This commit is contained in:
Bram Moolenaar
2019-08-09 17:01:02 +02:00
parent 820680b9ff
commit 0c779e8e48
2 changed files with 3 additions and 0 deletions

View File

@@ -10755,6 +10755,7 @@ f_spellbadword(typval_T *argvars UNUSED, typval_T *rettv)
} }
str += len; str += len;
capcol -= len; capcol -= len;
len = 0;
} }
} }
} }

View File

@@ -769,6 +769,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 */
/**/
1833,
/**/ /**/
1832, 1832,
/**/ /**/