diff options
-rw-r--r-- | src/version.c | 2 | ||||
-rw-r--r-- | src/vim9script.c | 4 |
2 files changed, 4 insertions, 2 deletions
diff --git a/src/version.c b/src/version.c index 21efafcef4..e177a05087 100644 --- a/src/version.c +++ b/src/version.c @@ -756,6 +756,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 3349, +/**/ 3348, /**/ 3347, diff --git a/src/vim9script.c b/src/vim9script.c index 19991097a0..9ddc489303 100644 --- a/src/vim9script.c +++ b/src/vim9script.c @@ -40,8 +40,8 @@ in_vim9script(void) int in_old_script(int max_version) { - return (current_sctx.sc_version <= max_version - && !(cmdmod.cmod_flags & CMOD_VIM9CMD)) + return (current_sctx.sc_version < max_version + && !(cmdmod.cmod_flags & CMOD_VIM9CMD)) || (cmdmod.cmod_flags & CMOD_LEGACY); } |