diff --git a/src/version.c b/src/version.c index dabc2af706..20bc9a225a 100644 --- a/src/version.c +++ b/src/version.c @@ -750,6 +750,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2513, /**/ 2512, /**/ diff --git a/src/vim9script.c b/src/vim9script.c index fea478592d..d40104cb7a 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -23,7 +23,8 @@ in_vim9script(void) // Do not go up the stack, a ":function" inside vim9script uses legacy // syntax. "sc_version" is also set when compiling a ":def" function in // legacy script. - return current_sctx.sc_version == SCRIPT_VERSION_VIM9; + return current_sctx.sc_version == SCRIPT_VERSION_VIM9 + || (cmdmod.cmod_flags & CMOD_VIM9CMD); } /*