1
0
forked from aniani/vim

patch 8.2.0827: Vim9: crash in :defcompile

Problem:    Vim9: crash in :defcompile.
Solution:   Fix off-by-one error.
This commit is contained in:
Bram Moolenaar
2020-05-26 11:37:26 +02:00
parent ebc3de634f
commit 285b189260
2 changed files with 3 additions and 0 deletions

View File

@@ -3348,6 +3348,7 @@ ex_defcompile(exarg_T *eap UNUSED)
hi = func_hashtab.ht_array;
ht_used = func_hashtab.ht_used;
todo = (int)ht_used;
--hi;
}
}
}

View File

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