Merge pull request #3304 from sethjackson/wildignorecase

Windows: Ignore EW_ICASE in do_path_expand
This commit is contained in:
Justin M. Keyes 2015-12-31 17:02:57 -05:00
commit 6d5a5b02f6

View File

@ -579,9 +579,13 @@ static size_t do_path_expand(garray_T *gap, const char_u *path,
s = p + 1;
} else if (path_end >= path + wildoff
&& (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL
#ifndef WIN32
|| (!p_fic && (flags & EW_ICASE)
&& isalpha(PTR2CHAR(path_end)))))
&& isalpha(PTR2CHAR(path_end))))
#endif
) {
e = p;
}
if (has_mbyte) {
len = (*mb_ptr2len)(path_end);
STRNCPY(p, path_end, len);