We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d870f8 commit c0913d0Copy full SHA for c0913d0
2 files changed
src/version.c
@@ -750,6 +750,8 @@ static char *(features[]) =
750
751
static int included_patches[] =
752
{ /* Add new patch number below this line */
753
+/**/
754
+ 2093,
755
/**/
756
2092,
757
src/vim9script.c
@@ -741,7 +741,9 @@ find_typval_in_script(typval_T *dest)
741
{
742
svar_T *sv = ((svar_T *)si->sn_var_vals.ga_data) + idx;
743
744
- if (sv->sv_tv == dest)
+ // If "sv_name" is NULL the variable was hidden when leaving a block,
745
+ // don't check "sv_tv" then, it might be used for another variable now.
746
+ if (sv->sv_name != NULL && sv->sv_tv == dest)
747
return sv;
748
}
749
iemsg("check_script_var_type(): not found");
0 commit comments