Patch 8.2.2093
Problem:    Vim9: script test sometimes fails.
Solution:   Do not find a script variable by its typval if the name was
            cleared.
Files:      src/vim9script.c


*** ../vim-8.2.2092/src/vim9script.c    2020-10-28 17:55:26.440231132 +0100
--- src/vim9script.c    2020-12-05 14:43:47.024702498 +0100
***************
*** 741,747 ****
      {
        svar_T    *sv = ((svar_T *)si->sn_var_vals.ga_data) + idx;
  
!       if (sv->sv_tv == dest)
            return sv;
      }
      iemsg("check_script_var_type(): not found");
--- 741,749 ----
      {
        svar_T    *sv = ((svar_T *)si->sn_var_vals.ga_data) + idx;
  
!       // If "sv_name" is NULL the variable was hidden when leaving a block,
!       // don't check "sv_tv" then, it might be used for another variable now.
!       if (sv->sv_name != NULL && sv->sv_tv == dest)
            return sv;
      }
      iemsg("check_script_var_type(): not found");
*** ../vim-8.2.2092/src/version.c       2020-12-05 13:40:57.499035073 +0100
--- src/version.c       2020-12-05 14:42:46.024728218 +0100
***************
*** 752,753 ****
--- 752,755 ----
  {   /* Add new patch number below this line */
+ /**/
+     2093,
  /**/

-- 
An indication you must be a manager:
You give constructive feedback to your dog.

 /// 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/202012051345.0B5Dj392809711%40masaka.moolenaar.net.

Raspunde prin e-mail lui