mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
vim-patch:8.2.4671: 'wildignorecase' is sometimes not used for glob() (#20165)
Problem: 'wildignorecase' is sometimes not used for glob().
Solution: Also use 'wildignorecase' when there are no wildcards.
(closes vim/vim#10066, closes vim/vim#8350)
a3157a476b
This commit is contained in:
@@ -1272,12 +1272,12 @@ int gen_expand_wildcards(int num_pat, char **pat, int *num_file, char ***file, i
|
||||
}
|
||||
}
|
||||
|
||||
// If there are wildcards: Expand file names and add each match to
|
||||
// the list. If there is no match, and EW_NOTFOUND is given, add
|
||||
// the pattern.
|
||||
// If there are no wildcards: Add the file name if it exists or
|
||||
// when EW_NOTFOUND is given.
|
||||
if (path_has_exp_wildcard(p)) {
|
||||
// If there are wildcards or case-insensitive expansion is
|
||||
// required: Expand file names and add each match to the list. If
|
||||
// there is no match, and EW_NOTFOUND is given, add the pattern.
|
||||
// Otherwise: Add the file name if it exists or when EW_NOTFOUND is
|
||||
// given.
|
||||
if (path_has_exp_wildcard(p) || (flags & EW_ICASE)) {
|
||||
if ((flags & EW_PATH)
|
||||
&& !path_is_absolute(p)
|
||||
&& !(p[0] == '.'
|
||||
|
Reference in New Issue
Block a user