Skip to content
Snippets Groups Projects
Commit 5cebca27 authored by Bram Moolenaar's avatar Bram Moolenaar
Browse files

patch 8.2.3349: eval test for scriptversion fails

Problem:    Eval test for scriptversion fails.
Solution:   Fix off-by-one error.
parent 14c7530c
No related branches found
No related tags found
No related merge requests found
......@@ -755,6 +755,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3349,
/**/
3348,
/**/
......
......@@ -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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment