1
0
forked from aniani/vim

updated for version 7.3.072

Problem:    Can't complete file names while ignoring case.
Solution:   Add 'wildignorecase'.
This commit is contained in:
Bram Moolenaar
2010-12-02 16:01:29 +01:00
parent 4161dccada
commit 94950a9ee0
8 changed files with 45 additions and 10 deletions

View File

@@ -9161,7 +9161,10 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
#ifdef CASE_INSENSITIVE_FILENAME
regmatch.rm_ic = TRUE; /* Behave like Terminal.app */
#else
regmatch.rm_ic = FALSE; /* Don't ever ignore case */
if (flags & EW_ICASE)
regmatch.rm_ic = TRUE; /* 'wildignorecase' set */
else
regmatch.rm_ic = FALSE; /* Don't ignore case */
#endif
regmatch.regprog = vim_regcomp(pat, RE_MAGIC);
vim_free(pat);
@@ -9643,7 +9646,7 @@ expand_in_path(gap, pattern, flags)
if (paths == NULL)
return 0;
files = globpath(paths, pattern, 0);
files = globpath(paths, pattern, (flags & EW_ICASE) ? WILD_ICASE : 0);
vim_free(paths);
if (files == NULL)
return 0;