0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.4671: 'wildignorecase' is sometimes not used for glob()

Problem:    'wildignorecase' is sometimes not used for glob().
Solution:   Also use 'wildignorecase' when there are no wildcards.
            (closes #10066, closes #8350)
This commit is contained in:
LemonBoy
2022-04-03 11:58:31 +01:00
committed by Bram Moolenaar
parent 72bb47e38f
commit a3157a476b
3 changed files with 10 additions and 6 deletions

View File

@@ -3945,13 +3945,13 @@ gen_expand_wildcards(
}
/*
* 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 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 (mch_has_exp_wildcard(p))
if (mch_has_exp_wildcard(p) || (flags & EW_ICASE))
{
#if defined(FEAT_SEARCHPATH)
if ((flags & EW_PATH)