Patch 8.2.2093

7 views
Skip to first unread message

Bram Moolenaar

unread,
Dec 5, 2020, 8:45:13 AM12/5/20
to vim...@googlegroups.com

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 -- Br...@Moolenaar.net -- 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 ///
Reply all
Reply to author
Forward
0 new messages