summaryrefslogtreecommitdiff
path: root/src/ex_getln.c
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2010-03-17 19:13:27 +0100
committerBram Moolenaar <Bram@vim.org>2010-03-17 19:13:27 +0100
commitb91e59b0f3b68913dba2042a55b8a50c8ddf50fb (patch)
treee1ef6e21741e70ec7476ccad51755bd08073b514 /src/ex_getln.c
parent639a2554e4a14f107d3d578ebebabf0fc13f276f (diff)
downloadvim-git-b91e59b0f3b68913dba2042a55b8a50c8ddf50fb.tar.gz
updated for version 7.2.401v7.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)
Diffstat (limited to 'src/ex_getln.c')
-rw-r--r--src/ex_getln.c8
1 files changed, 6 insertions, 2 deletions
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