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 -- [email protected] -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/202108151239.17FCdiA03991988%40masaka.moolenaar.net.