aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/path.c
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2015-12-31 17:02:57 -0500
committerJustin M. Keyes <justinkz@gmail.com>2015-12-31 17:02:57 -0500
commit6d5a5b02f64ad82e2a4c9da85b91b0497e99b2b2 (patch)
tree81a03c289ee2d3730eaf685bca8f2ee29d0e1195 /src/nvim/path.c
parent68fb815bf171699312e72650b5008ba59dafcf9b (diff)
parent568ee1e3c2af21417ce9ae75907b8fb351152782 (diff)
downloadrneovim-6d5a5b02f64ad82e2a4c9da85b91b0497e99b2b2.tar.gz
rneovim-6d5a5b02f64ad82e2a4c9da85b91b0497e99b2b2.tar.bz2
rneovim-6d5a5b02f64ad82e2a4c9da85b91b0497e99b2b2.zip
Merge pull request #3304 from sethjackson/wildignorecase
Windows: Ignore EW_ICASE in do_path_expand
Diffstat (limited to 'src/nvim/path.c')
-rw-r--r--src/nvim/path.c6
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);