summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-05-26 11:37:26 +0200
committerBram Moolenaar <Bram@vim.org>2020-05-26 11:37:26 +0200
commit285b189260e2d753454449e429f2caa17e1c39a5 (patch)
treef3a12486c448d230c31acd2e8478dfa5064f4f6d
parentebc3de634f4c2893f34e41b4f8da1d59212e59ea (diff)
downloadvim-git-285b189260e2d753454449e429f2caa17e1c39a5.tar.gz
patch 8.2.0827: Vim9: crash in :defcompilev8.2.0827
Problem: Vim9: crash in :defcompile. Solution: Fix off-by-one error.
-rw-r--r--src/userfunc.c1
-rw-r--r--src/version.c2
2 files changed, 3 insertions, 0 deletions
diff --git a/src/userfunc.c b/src/userfunc.c
index 4a12c1984..469dcc1a5 100644
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -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;
}
}
}
diff --git a/src/version.c b/src/version.c
index 173087551..8a94dde4c 100644
--- a/src/version.c
+++ b/src/version.c
@@ -747,6 +747,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 827,
+/**/
826,
/**/
825,