mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge pull request #3304 from sethjackson/wildignorecase
Windows: Ignore EW_ICASE in do_path_expand
This commit is contained in:
commit
6d5a5b02f6
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user