summaryrefslogtreecommitdiffstats
path: root/src/filepath.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2022-04-28 17:52:24 +0100
committerBram Moolenaar <Bram@vim.org>2022-04-28 17:52:24 +0100
commita96edb736d4274fc4aea460800780e06e1510812 (patch)
tree49b65efbf351fe23cf3340d9d8c07286f8ee778c /src/filepath.c
parent05c7f5d3d03440da6f69604f8c06c4e3d90d2a26 (diff)
patch 8.2.4841: empty string considered an error for expand()v8.2.4841
Problem: Empty string considered an error for expand() when 'verbose' is set. (Christian Brabandt) Solution: Do not give an error for an empty result. (closes #10307)
Diffstat (limited to 'src/filepath.c')
-rw-r--r--src/filepath.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c
index 6ee5fad960..09c9f4a198 100644
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -3097,7 +3097,7 @@ expand_wildcards_eval(
{
++emsg_off;
eval_pat = eval_vars(exp_pat, exp_pat, &usedlen,
- NULL, &ignored_msg, NULL);
+ NULL, &ignored_msg, NULL, TRUE);
--emsg_off;
if (eval_pat != NULL)
exp_pat = concat_str(eval_pat, exp_pat + usedlen);