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:
@@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3349,
|
||||
/**/
|
||||
3348,
|
||||
/**/
|
||||
|
@@ -40,7 +40,7 @@ in_vim9script(void)
|
||||
int
|
||||
in_old_script(int max_version)
|
||||
{
|
||||
return (current_sctx.sc_version <= max_version
|
||||
return (current_sctx.sc_version < max_version
|
||||
&& !(cmdmod.cmod_flags & CMOD_VIM9CMD))
|
||||
|| (cmdmod.cmod_flags & CMOD_LEGACY);
|
||||
}
|
||||
|
Reference in New Issue
Block a user