]> granicus.if.org Git - vim/commitdiff
updated for version 7.2.401 v7.2.401
authorBram Moolenaar <Bram@vim.org>
Wed, 17 Mar 2010 18:13:27 +0000 (19:13 +0100)
committerBram Moolenaar <Bram@vim.org>
Wed, 17 Mar 2010 18:13:27 +0000 (19:13 +0100)
Problem:    ":e dir<Tab>" with 'wildmode' set to "list" doesn't highlight
            directory names with a space. (Alexandre Provencio)
Solution:   Remove the backslash before checking if the name is a directory.
            (Dominique Pelle)

src/ex_getln.c
src/version.c

index 0f0f17075d1921c36777daaa6941a2e6598bc068..dea4b13423bfb5cc7285c31159ec990a935b472d 100644 (file)
@@ -3948,8 +3948,12 @@ showmatches(xp, wildmenu)
                                          || xp->xp_context == EXPAND_SHELLCMD
                                          || xp->xp_context == EXPAND_BUFFERS)
                {
-                           /* highlight directories */
-                   j = (mch_isdir(files_found[k]));
+                   char_u      *halved_slash;
+
+                   /* highlight directories */
+                   halved_slash = backslash_halve_save(files_found[k]);
+                   j = mch_isdir(halved_slash);
+                   vim_free(halved_slash);
                    if (showtail)
                        p = L_SHOWFILE(k);
                    else
index bb265a91b073d350631bc7b68f95a052a971b519..64e2a6067c5a64dc076f62f2626dc9d6e965e508 100644 (file)
@@ -681,6 +681,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    401,
 /**/
     400,
 /**/