Mercurial > vim
changeset 2118:63bf37c1e7a2 v7.2.401
updated for version 7.2.401
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)
author | Bram Moolenaar <bram@zimbu.org> |
---|---|
date | Wed, 17 Mar 2010 19:13:27 +0100 |
parents | 4be6da0fa3d9 |
children | 111554354870 |
files | src/ex_getln.c src/version.c |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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