0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4145: confusing error when using name of import for a function

Problem:    Confusing error when using name of import for a function.
Solution:   Pass a flag to trans_function_name().
This commit is contained in:
Bram Moolenaar
2022-01-19 17:21:29 +00:00
parent 1a8825d7a3
commit 937610bc9f
6 changed files with 27 additions and 8 deletions

View File

@@ -2072,7 +2072,7 @@ eval_func(
// If "s" is the name of a variable of type VAR_FUNC
// use its contents.
s = deref_func_name(s, &len, &partial,
in_vim9script() ? &type : NULL, !evaluate, &found_var);
in_vim9script() ? &type : NULL, !evaluate, FALSE, &found_var);
// Need to make a copy, in case evaluating the arguments makes
// the name invalid.