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:
@@ -3348,6 +3348,7 @@ ex_defcompile(exarg_T *eap UNUSED)
|
|||||||
hi = func_hashtab.ht_array;
|
hi = func_hashtab.ht_array;
|
||||||
ht_used = func_hashtab.ht_used;
|
ht_used = func_hashtab.ht_used;
|
||||||
todo = (int)ht_used;
|
todo = (int)ht_used;
|
||||||
|
--hi;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -746,6 +746,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 */
|
||||||
|
/**/
|
||||||
|
827,
|
||||||
/**/
|
/**/
|
||||||
826,
|
826,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user