Patch 8.2.2417
Problem:    Condition stack values may be used when not set.
Solution:   Clear cs_script_var_len and cs_block_id just in case they get used
            later. (issue #7733)
Files:      src/ex_eval.c


*** ../vim-8.2.2416/src/ex_eval.c       2021-01-03 19:51:01.396063220 +0100
--- src/ex_eval.c       2021-01-27 21:34:32.623456586 +0100
***************
*** 920,925 ****
--- 920,932 ----
        cstack->cs_block_id[cstack->cs_idx] = ++si->sn_last_block_id;
        si->sn_current_block_id = si->sn_last_block_id;
      }
+     else
+     {
+       // Just in case in_vim9script() does not return the same value when the
+       // block ends.
+       cstack->cs_script_var_len[cstack->cs_idx] = 0;
+       cstack->cs_block_id[cstack->cs_idx] = 0;
+     }
  }
  
      static void
*** ../vim-8.2.2416/src/version.c       2021-01-27 20:34:25.291292488 +0100
--- src/version.c       2021-01-27 21:36:17.303239417 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2417,
  /**/

-- 
hundred-and-one symptoms of being an internet addict:
250. You've given up the search for the "perfect woman" and instead,
     sit in front of the PC until you're just too tired to care.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            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/202101272037.10RKbifE3827963%40masaka.moolenaar.net.

Raspunde prin e-mail lui