Mercurial > vim
comparison src/arglist.c @ 23778:8b682f6f3709 v8.2.2430
patch 8.2.2430: :vimgrep expands wildcards twice
Commit: https://github.com/vim/vim/commit/f8c6a1718007432812184c28495e8d27ee6c0395
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Jan 30 18:09:06 2021 +0100
patch 8.2.2430: :vimgrep expands wildcards twice
Problem: :vimgrep expands wildcards twice.
Solution: Do not expand wildcards a second time.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Jan 2021 18:15:04 +0100 |
parents | bb2afcad503b |
children | d97258eca25d |
comparison
equal
deleted
inserted
replaced
23777:047036413343 | 23778:8b682f6f3709 |
---|---|
313 | 313 |
314 if (get_arglist(&ga, str, TRUE) == FAIL) | 314 if (get_arglist(&ga, str, TRUE) == FAIL) |
315 return FAIL; | 315 return FAIL; |
316 if (wig == TRUE) | 316 if (wig == TRUE) |
317 i = expand_wildcards(ga.ga_len, (char_u **)ga.ga_data, | 317 i = expand_wildcards(ga.ga_len, (char_u **)ga.ga_data, |
318 fcountp, fnamesp, EW_FILE|EW_NOTFOUND); | 318 fcountp, fnamesp, EW_FILE|EW_NOTFOUND|EW_NOTWILD); |
319 else | 319 else |
320 i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data, | 320 i = gen_expand_wildcards(ga.ga_len, (char_u **)ga.ga_data, |
321 fcountp, fnamesp, EW_FILE|EW_NOTFOUND); | 321 fcountp, fnamesp, EW_FILE|EW_NOTFOUND|EW_NOTWILD); |
322 | 322 |
323 ga_clear(&ga); | 323 ga_clear(&ga); |
324 return i; | 324 return i; |
325 } | 325 } |
326 #endif | 326 #endif |