diff options
author | Rui Abreu Ferreira <raf-ep@gmx.com> | 2015-05-28 22:40:27 +0100 |
---|---|---|
committer | Seth Jackson <sethjackson@gmail.com> | 2015-12-31 16:14:12 -0500 |
commit | 568ee1e3c2af21417ce9ae75907b8fb351152782 (patch) | |
tree | 81a03c289ee2d3730eaf685bca8f2ee29d0e1195 /src | |
parent | 68fb815bf171699312e72650b5008ba59dafcf9b (diff) | |
download | rneovim-568ee1e3c2af21417ce9ae75907b8fb351152782.tar.gz rneovim-568ee1e3c2af21417ce9ae75907b8fb351152782.tar.bz2 rneovim-568ee1e3c2af21417ce9ae75907b8fb351152782.zip |
Windows: Ignore EW_ICASE in do_path_expand
The do_path_expand() function is still using the unix_expandpath
variant from Vim. For Windows it should behave as the old
dos_expandpath() function. This commit adds an ifdef to ignore
EW_ICASE flag in this function, otherwise all matches fail on Windows
if wildignorecase is set.
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/path.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/path.c b/src/nvim/path.c index 253035ed99..d689eaf8cb 100644 --- a/src/nvim/path.c +++ b/src/nvim/path.c @@ -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); |