From 285b189260e2d753454449e429f2caa17e1c39a5 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Tue, 26 May 2020 11:37:26 +0200 Subject: [PATCH] patch 8.2.0827: Vim9: crash in :defcompile Problem: Vim9: crash in :defcompile. Solution: Fix off-by-one error. --- src/userfunc.c | 1 + src/version.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/userfunc.c b/src/userfunc.c index 4a12c1984c..469dcc1a53 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 1730875514..8a94dde4c1 100644 --- a/src/version.c +++ b/src/version.c @@ -746,6 +746,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 827, /**/ 826, /**/