patch 8.2.1824: Vim9: variables at the script level escape their scope
Problem: Vim9: variables at the script level escape their scope.
Solution: When leaving a scope remove variables declared in it.
diff --git a/src/structs.h b/src/structs.h
index 0a3d524..094b736 100644
--- a/src/structs.h
+++ b/src/structs.h
@@ -889,6 +889,8 @@
} cs_pend;
void *cs_forinfo[CSTACK_LEN]; // info used by ":for"
int cs_line[CSTACK_LEN]; // line nr of ":while"/":for" line
+ int cs_script_var_len[CSTACK_LEN]; // value of sn_var_vals.ga_len
+ // when entering the block
int cs_idx; // current entry, or -1 if none
int cs_looplevel; // nr of nested ":while"s and ":for"s
int cs_trylevel; // nr of nested ":try"s