summaryrefslogtreecommitdiffstats
path: root/src/eval.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-12-14 18:57:45 +0000
committerBram Moolenaar <Bram@vim.org>2021-12-14 18:57:45 +0000
commitb334137acffd7a2b2ab8524e54d4c55ebf4518ea (patch)
treeb6aae7de00566795aeb04bd264630f3fdc484474 /src/eval.c
parent7509ad8b0fad56f88288977decbeca3640406c82 (diff)
patch 8.2.3810: Vim9: expr4 test fails on MS-Windowsv8.2.3810
Problem: Vim9: expr4 test fails on MS-Windows. Solution: Do not give an error for a missing function name when skipping.
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 0a85b909d0..d9f44b2c80 100644
--- a/src/eval.c
+++ b/src/eval.c
@@ -2001,7 +2001,7 @@ eval_func(
// Need to make a copy, in case evaluating the arguments makes
// the name invalid.
s = vim_strsave(s);
- if (s == NULL || *s == NUL || (flags & EVAL_CONSTANT))
+ if (s == NULL || (evaluate && (*s == NUL || (flags & EVAL_CONSTANT))))
ret = FAIL;
else
{