Mercurial > vim
changeset 23942:39cf2d8e7edf v8.2.2513
patch 8.2.2513: Vim9: missing part of :vim9cmd change
Commit: https://github.com/vim/vim/commit/9979fcd72ed671ec2c98800587c3a6996adb27d4
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 14 13:30:01 2021 +0100
patch 8.2.2513: Vim9: missing part of :vim9cmd change
Problem: Vim9: missing part of :vim9cmd change.
Solution: Use command modifier in in_vim9script().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 14 Feb 2021 13:45:03 +0100 |
parents | 0551ce224ea7 |
children | b36d1a3ba39b |
files | src/version.c src/vim9script.c |
diffstat | 2 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/version.c +++ b/src/version.c @@ -751,6 +751,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 2513, +/**/ 2512, /**/ 2511,
--- 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); } /*