0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.3349: eval test for scriptversion fails

Problem:    Eval test for scriptversion fails.
Solution:   Fix off-by-one error.
This commit is contained in:
Bram Moolenaar
2021-08-15 14:39:13 +02:00
parent 14c7530c4f
commit 5cebca27b8
2 changed files with 4 additions and 2 deletions

View File

@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3349,
/**/
3348,
/**/

View File

@@ -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);
}