Skip to content

Commit

Permalink
patch 8.2.3349: eval test for scriptversion fails
Browse files Browse the repository at this point in the history
Problem:    Eval test for scriptversion fails.
Solution:   Fix off-by-one error.
  • Loading branch information
brammool committed Aug 15, 2021
1 parent 14c7530 commit 5cebca2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/version.c
Original file line number Diff line number Diff line change
Expand Up @@ -755,6 +755,8 @@ static char *(features[]) =

static int included_patches[] =
{ /* Add new patch number below this line */
/**/
3349,
/**/
3348,
/**/
Expand Down
4 changes: 2 additions & 2 deletions src/vim9script.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down

0 comments on commit 5cebca2

Please sign in to comment.