Problem: Vim9: missing part of :vim9cmd change.
Solution: Use command modifier in in_vim9script().
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 2513,
/**/
2512,
/**/
// 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);
}
/*