diff options
author | Jan Edmund Lazo <jan.lazo@mail.utoronto.ca> | 2021-01-31 10:10:22 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 10:10:22 -0500 |
commit | b2713f11b48fe8029aeae07ef6a55ef182a4fbfd (patch) | |
tree | 59df6354711c50a01c4c24549793bdcf07fa4d1e /src/nvim/ex_cmds2.c | |
parent | 55add1c1c8a9a040f02a880096ca153f7db3e501 (diff) | |
download | rneovim-b2713f11b48fe8029aeae07ef6a55ef182a4fbfd.tar.gz rneovim-b2713f11b48fe8029aeae07ef6a55ef182a4fbfd.tar.bz2 rneovim-b2713f11b48fe8029aeae07ef6a55ef182a4fbfd.zip |
vim-patch:8.2.2430: :vimgrep expands wildcards twice (#13853)
Problem: :vimgrep expands wildcards twice.
Solution: Do not expand wildcards a second time.
https://github.com/vim/vim/commit/f8c6a1718007432812184c28495e8d27ee6c0395
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index c400975108..e49bb99aa0 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -1639,10 +1639,10 @@ int get_arglist_exp(char_u *str, int *fcountp, char_u ***fnamesp, bool wig) if (wig) { 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); |