diff options
author | Bram Moolenaar <Bram@vim.org> | 2022-01-07 18:20:55 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-01-07 18:20:55 +0000 |
commit | 71f21938bc9f4f6c0e52c178f51cb19be9804690 (patch) | |
tree | 8cf3ec06947257cb88fb7366ac1fd04203f60404 /src/proto/evalvars.pro | |
parent | b2d85e3784ac89f5209489844c1ee0f54d117abb (diff) |
patch 8.2.4030: a script local funcref is not found from a mappingv8.2.4030
Problem: A script local funcref is not found from a mapping.
Solution: When looking for a function, also find a script-local funcref.
(closes #9485)
Diffstat (limited to 'src/proto/evalvars.pro')
-rw-r--r-- | src/proto/evalvars.pro | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/proto/evalvars.pro b/src/proto/evalvars.pro index de1f7a1f3d..487f88b61d 100644 --- a/src/proto/evalvars.pro +++ b/src/proto/evalvars.pro @@ -60,6 +60,7 @@ char_u *set_cmdarg(exarg_T *eap, char_u *oldarg); int eval_variable(char_u *name, int len, scid_T sid, typval_T *rettv, dictitem_T **dip, int flags); void check_vars(char_u *name, int len); dictitem_T *find_var(char_u *name, hashtab_T **htp, int no_autoload); +dictitem_T *find_var_also_in_script(char_u *name, hashtab_T **htp, int no_autoload); dictitem_T *find_var_in_ht(hashtab_T *ht, int htname, char_u *varname, int no_autoload); hashtab_T *get_script_local_ht(void); int lookup_scriptitem(char_u *name, size_t len, int cmd, cctx_T *dummy); |