aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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);