Skip to content

Commit 1f50469

Browse files
committed
updated for version 7.3.515
Problem: 'wildignorecase' only applies to the last part of the path. Solution: Also ignore case for letters earlier in the path.
1 parent aa7add9 commit 1f50469

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/misc1.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9461,6 +9461,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
94619461

94629462
/*
94639463
* Find the first part in the path name that contains a wildcard.
9464+
* When EW_ICASE is set every letter is considered to be a wildcard.
94649465
* Copy it into "buf", including the preceding characters.
94659466
*/
94669467
p = buf;
@@ -9480,7 +9481,12 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
94809481
s = p + 1;
94819482
}
94829483
else if (path_end >= path + wildoff
9483-
&& vim_strchr((char_u *)"*?[{~$", *path_end) != NULL)
9484+
&& (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL
9485+
#ifndef CASE_INSENSITIVE_FILENAME
9486+
|| ((flags & EW_ICASE)
9487+
&& isalpha(PTR2CHAR(path_end)))
9488+
#endif
9489+
))
94849490
e = p;
94859491
#ifdef FEAT_MBYTE
94869492
if (has_mbyte)

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -714,6 +714,8 @@ static char *(features[]) =
714714

715715
static int included_patches[] =
716716
{ /* Add new patch number below this line */
717+
/**/
718+
515,
717719
/**/
718720
514,
719721
/**/

0 commit comments

Comments
 (0)