patch 8.2.0827: Vim9: crash in :defcompile
Problem: Vim9: crash in :defcompile.
Solution: Fix off-by-one error.
diff --git a/src/userfunc.c b/src/userfunc.c
index 4a12c19..469dcc1 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -3348,6 +3348,7 @@
hi = func_hashtab.ht_array;
ht_used = func_hashtab.ht_used;
todo = (int)ht_used;
+ --hi;
}
}
}
diff --git a/src/version.c b/src/version.c
index 1730875..8a94dde 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 827,
+/**/
826,
/**/
825,