Mercurial > vim
changeset 25626:4e13cde003a8 v8.2.3349
patch 8.2.3349: eval test for scriptversion fails
Commit: https://github.com/vim/vim/commit/5cebca27b831880fb6e191e5271ee614625e1f8a
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Aug 15 14:39:13 2021 +0200
patch 8.2.3349: eval test for scriptversion fails
Problem: Eval test for scriptversion fails.
Solution: Fix off-by-one error.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 15 Aug 2021 14:45:03 +0200 |
parents | 46f183ec5413 |
children | a176e960ebdc |
files | src/version.c src/vim9script.c |
diffstat | 2 files changed, 4 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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,
--- 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); }