summaryrefslogtreecommitdiff
path: root/src/arglist.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2021-01-30 18:09:06 +0100
committerBram Moolenaar <Bram@vim.org>2021-01-30 18:09:06 +0100
commitf8c6a1718007432812184c28495e8d27ee6c0395 (patch)
tree301e5a7b0b80b406610881f02be24c3460674d5b /src/arglist.c
parent59ff64079b4fcf0393a7413e3242a8b58c2ceadb (diff)
downloadvim-git-f8c6a1718007432812184c28495e8d27ee6c0395.tar.gz
patch 8.2.2430: :vimgrep expands wildcards twicev8.2.2430
Problem: :vimgrep expands wildcards twice. Solution: Do not expand wildcards a second time.
Diffstat (limited to 'src/arglist.c')
-rw-r--r--src/arglist.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/arglist.c b/src/arglist.c
index 117116cd5..503cbd90d 100644
--- a/src/arglist.c
+++ b/src/arglist.c
@@ -315,10 +315,10 @@ get_arglist_exp(
return FAIL;
if (wig == TRUE)
i = expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
- fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
+ fcountp, fnamesp, EW_FILE|EW_NOTFOUND|EW_NOTWILD);
else
i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data,
- fcountp, fnamesp, EW_FILE|EW_NOTFOUND);
+ fcountp, fnamesp, EW_FILE|EW_NOTFOUND|EW_NOTWILD);
ga_clear(&ga);
return i;