Patch 8.2.3349 (after 8.2.3347)
Problem: Eval test for scriptversion fails.
Solution: Fix off-by-one error.
Files: src/vim9script.c
*** ../vim-8.2.3348/src/vim9script.c 2021-08-15 13:49:38.122905579 +0200
--- src/vim9script.c 2021-08-15 14:36:49.568759094 +0200
***************
*** 40,47 ****
int
in_old_script(int max_version)
{
! return (current_sctx.sc_version <= max_version
! && !(cmdmod.cmod_flags & CMOD_VIM9CMD))
|| (cmdmod.cmod_flags & CMOD_LEGACY);
}
--- 40,47 ----
int
in_old_script(int max_version)
{
! return (current_sctx.sc_version < max_version
! && !(cmdmod.cmod_flags & CMOD_VIM9CMD))
|| (cmdmod.cmod_flags & CMOD_LEGACY);
}
*** ../vim-8.2.3348/src/version.c 2021-08-15 14:28:17.690235048 +0200
--- src/version.c 2021-08-15 14:39:02.232382724 +0200
***************
*** 757,758 ****
--- 757,760 ----
{ /* Add new patch number below this line */
+ /**/
+ 3349,
/**/
--
I just planted an Algebra tree. It has square roots.
/// Bram Moolenaar -- Br...@Moolenaar.net --
http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features --
http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims --
http://ICCF-Holland.org ///