forked from aniani/vim
patch 8.2.2208: Vim9: after reloading a script variable index may be invalid
Problem: Vim9: after reloading a script variable index may be invalid.
Solution: When the sequence number doesn't match give an error for using a
script-local variable from a compiled function. (closes #7547)
This commit is contained in:
@@ -327,3 +327,5 @@ EXTERN char e_list_not_set[]
|
||||
INIT(= N_("E1147: List not set"));
|
||||
EXTERN char e_cannot_index_str[]
|
||||
INIT(= N_("E1148: Cannot index a %s"));
|
||||
EXTERN char e_script_variable_invalid_after_reload_in_function_str[]
|
||||
INIT(= N_("E1149: Script variable is invalid after reload in function %s"));
|
||||
|
||||
Reference in New Issue
Block a user