# HG changeset patch # User Bram Moolenaar # Date 1268849607 -3600 # Node ID 63bf37c1e7a2c323b368df6e926b026139ec3144 # Parent 4be6da0fa3d9978434273d3abc021d7e68455864 updated for version 7.2.401 Problem: ":e dir" 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) diff --git a/src/ex_getln.c b/src/ex_getln.c --- a/src/ex_getln.c +++ b/src/ex_getln.c @@ -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 diff --git a/src/version.c b/src/version.c --- a/src/version.c +++ b/src/version.c @@ -682,6 +682,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ /**/ + 401, +/**/ 400, /**/ 399,