l
Patch 8.2.2513 (after 8.2.2511)
Problem: Vim9: missing part of :vim9cmd change.
Solution: Use command modifier in in_vim9script().
Files: src/vim9script.c
*** ../vim-8.2.2512/src/vim9script.c 2021-02-11 21:19:30.522147936 +0100
--- src/vim9script.c 2021-02-13 21:55:54.561391301 +0100
***************
*** 23,29 ****
// 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;
}
/*
--- 23,30 ----
// 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
! || (cmdmod.cmod_flags & CMOD_VIM9CMD);
}
/*
*** ../vim-8.2.2512/src/version.c 2021-02-14 13:17:16.992007963 +0100
--- src/version.c 2021-02-14 13:29:47.525265028 +0100
***************
*** 752,753 ****
--- 752,755 ----
{ /* Add new patch number below this line */
+ /**/
+ 2513,
/**/
--
ARTHUR: A scratch? Your arm's off!
BLACK KNIGHT: No, it isn't.
ARTHUR: Well, what's that then?
BLACK KNIGHT: I've had worse.
The Quest for the Holy Grail (Monty Python)
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language --
http://www.Zimbu.org ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///