comparison src/filepath.c @ 28291:1c97a31f8f22 v8.2.4671

patch 8.2.4671: 'wildignorecase' is sometimes not used for glob() Commit: https://github.com/vim/vim/commit/a3157a476bfa8c3077d510cc8400093c0d115df5 Author: LemonBoy <thatlemon@gmail.com> Date: Sun Apr 3 11:58:31 2022 +0100 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)
author Bram Moolenaar <Bram@vim.org>
date Sun, 03 Apr 2022 13:00:03 +0200
parents 48b9ffd40f38
children 425700af491b
comparison
equal deleted inserted replaced
28290:f5ea61be543b 28291:1c97a31f8f22
3943 } 3943 }
3944 #endif 3944 #endif
3945 } 3945 }
3946 3946
3947 /* 3947 /*
3948 * If there are wildcards: Expand file names and add each match to 3948 * If there are wildcards or case-insensitive expansion is
3949 * the list. If there is no match, and EW_NOTFOUND is given, add 3949 * required: Expand file names and add each match to the list. If
3950 * the pattern. 3950 * there is no match, and EW_NOTFOUND is given, add the pattern.
3951 * If there are no wildcards: Add the file name if it exists or 3951 * Otherwise: Add the file name if it exists or when EW_NOTFOUND is
3952 * when EW_NOTFOUND is given. 3952 * given.
3953 */ 3953 */
3954 if (mch_has_exp_wildcard(p)) 3954 if (mch_has_exp_wildcard(p) || (flags & EW_ICASE))
3955 { 3955 {
3956 #if defined(FEAT_SEARCHPATH) 3956 #if defined(FEAT_SEARCHPATH)
3957 if ((flags & EW_PATH) 3957 if ((flags & EW_PATH)
3958 && !mch_isFullName(p) 3958 && !mch_isFullName(p)
3959 && !(p[0] == '.' 3959 && !(p[0] == '.'