diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-10-20 14:25:07 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-10-20 14:25:07 +0200 |
commit | 39ca4127a094d8aca6f77c01be4f3fea506d5cb7 (patch) | |
tree | c9c076a453569a36b9a7eea90bc06e5898ec8e28 /src/proto/vim9script.pro | |
parent | 955347cc7e78352a5d49540573ae958ad45e6386 (diff) |
patch 8.2.1870: Vim9: no need to keep all script variablesv8.2.1870
Problem: Vim9: no need to keep all script variables.
Solution: Only keep script variables when a function was defined that could
use them. Fix freeing static string on exit.
Diffstat (limited to 'src/proto/vim9script.pro')
-rw-r--r-- | src/proto/vim9script.pro | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/proto/vim9script.pro b/src/proto/vim9script.pro index 5b83f1219b..8f9cb6d3a0 100644 --- a/src/proto/vim9script.pro +++ b/src/proto/vim9script.pro @@ -9,7 +9,7 @@ int find_exported(int sid, char_u *name, ufunc_T **ufunc, type_T **type, cctx_T char_u *handle_import(char_u *arg_start, garray_T *gap, int import_sid, evalarg_T *evalarg, void *cctx); char_u *vim9_declare_scriptvar(exarg_T *eap, char_u *arg); void add_vim9_script_var(dictitem_T *di, typval_T *tv, type_T *type); -void hide_script_var(scriptitem_T *si, int idx); +void hide_script_var(scriptitem_T *si, int idx, int func_defined); void free_all_script_vars(scriptitem_T *si); svar_T *find_typval_in_script(typval_T *dest); int check_script_var_type(typval_T *dest, typval_T *value, char_u *name); |