summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-01-19 17:21:29 +0000
committerBram Moolenaar <Bram@vim.org>2022-01-19 17:21:29 +0000
commit937610bc9f9c827e3e25fed32661fcbf3f994e10 (patch)
tree1ce20686961b8b5e70edf33775ae14e1485b4eca /src/eval.c
parent1a8825d7a3484d76ca16ea2aa9769cadca7758a4 (diff)
patch 8.2.4145: confusing error when using name of import for a functionv8.2.4145
Problem: Confusing error when using name of import for a function. Solution: Pass a flag to trans_function_name().
Diffstat (limited to 'src/eval.c')
-rw-r--r--src/eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/eval.c b/src/eval.c
index 2b145e1a2a..9313c27207 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -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.