From b91e59b0f3b68913dba2042a55b8a50c8ddf50fb Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Wed, 17 Mar 2010 19:13:27 +0100 Subject: 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) --- src/ex_getln.c | 8 ++++++-- src/version.c | 2 ++ 2 files changed, 8 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/ex_getln.c b/src/ex_getln.c index 0f0f17075..dea4b1342 100644 --- 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 index bb265a91b..64e2a6067 100644 --- a/src/version.c +++ b/src/version.c @@ -681,6 +681,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 401, /**/ 400, /**/ -- cgit v1.2.1