mirror of
https://github.com/vim/vim.git
synced 2025-10-04 05:25:06 -04:00
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.
This commit is contained in:
@@ -9461,6 +9461,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* Find the first part in the path name that contains a wildcard.
|
* Find the first part in the path name that contains a wildcard.
|
||||||
|
* When EW_ICASE is set every letter is considered to be a wildcard.
|
||||||
* Copy it into "buf", including the preceding characters.
|
* Copy it into "buf", including the preceding characters.
|
||||||
*/
|
*/
|
||||||
p = buf;
|
p = buf;
|
||||||
@@ -9480,7 +9481,12 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
|
|||||||
s = p + 1;
|
s = p + 1;
|
||||||
}
|
}
|
||||||
else if (path_end >= path + wildoff
|
else if (path_end >= path + wildoff
|
||||||
&& vim_strchr((char_u *)"*?[{~$", *path_end) != NULL)
|
&& (vim_strchr((char_u *)"*?[{~$", *path_end) != NULL
|
||||||
|
#ifndef CASE_INSENSITIVE_FILENAME
|
||||||
|
|| ((flags & EW_ICASE)
|
||||||
|
&& isalpha(PTR2CHAR(path_end)))
|
||||||
|
#endif
|
||||||
|
))
|
||||||
e = p;
|
e = p;
|
||||||
#ifdef FEAT_MBYTE
|
#ifdef FEAT_MBYTE
|
||||||
if (has_mbyte)
|
if (has_mbyte)
|
||||||
|
@@ -714,6 +714,8 @@ static char *(features[]) =
|
|||||||
|
|
||||||
static int included_patches[] =
|
static int included_patches[] =
|
||||||
{ /* Add new patch number below this line */
|
{ /* Add new patch number below this line */
|
||||||
|
/**/
|
||||||
|
515,
|
||||||
/**/
|
/**/
|
||||||
514,
|
514,
|
||||||
/**/
|
/**/
|
||||||
|
Reference in New Issue
Block a user