1
0
forked from aniani/vim

patch 8.2.2513: Vim9: missing part of :vim9cmd change

Problem:    Vim9: missing part of :vim9cmd change.
Solution:   Use command modifier in in_vim9script().
This commit is contained in:
Bram Moolenaar
2021-02-14 13:30:01 +01:00
parent 03dfde2b5f
commit 9979fcd72e
2 changed files with 4 additions and 1 deletions

View File

@@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2513,
/**/
2512,
/**/

View File

@@ -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);
}
/*