]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
updated for version 7.3.515 v7.3.515
authorBram Moolenaar <Bram@vim.org>
Mon, 30 Apr 2012 19:09:43 +0000 (21:09 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 30 Apr 2012 19:09:43 +0000 (21:09 +0200)
Problem:    'wildignorecase' only applies to the last part of the path.
Solution:   Also ignore case for letters earlier in the path.

src/misc1.c
src/version.c

index f9513e2314d9a12e70282736f0c82214c12d5aaf..b30b07771da8f3b78833d69a81312f6f7350f710 100644 (file)
@@ -9461,6 +9461,7 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
 
     /*
      * 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.
      */
     p = buf;
@@ -9480,7 +9481,12 @@ unix_expandpath(gap, path, wildoff, flags, didstar)
            s = p + 1;
        }
        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;
 #ifdef FEAT_MBYTE
        if (has_mbyte)
index e5a7fd94a0ac1ab252f54ee96e724a5a89c60d8e..317a2d19eabdf166320dda5b44cf9dcb702e47c9 100644 (file)
@@ -714,6 +714,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    515,
 /**/
     514,
 /**/