0
0
mirror of https://github.com/vim/vim.git synced 2025-09-23 03:43:49 -04:00

patch 8.2.4030: a script local funcref is not found from a mapping

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)
This commit is contained in:
Bram Moolenaar
2022-01-07 18:20:55 +00:00
parent b2d85e3784
commit 71f21938bc
5 changed files with 59 additions and 28 deletions

View File

@@ -1589,7 +1589,7 @@ deref_func_name(
cc = name[*lenp];
name[*lenp] = NUL;
v = find_var(name, &ht, no_autoload);
v = find_var_also_in_script(name, &ht, no_autoload);
name[*lenp] = cc;
if (v != NULL)
{