diff options
author | Bram Moolenaar <Bram@vim.org> | 2010-03-17 19:13:27 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2010-03-17 19:13:27 +0100 |
commit | b91e59b0f3b68913dba2042a55b8a50c8ddf50fb (patch) | |
tree | e1ef6e21741e70ec7476ccad51755bd08073b514 /src | |
parent | 639a2554e4a14f107d3d578ebebabf0fc13f276f (diff) | |
download | vim-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')
-rw-r--r-- | src/ex_getln.c | 8 | ||||
-rw-r--r-- | src/version.c | 2 |
2 files changed, 8 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 diff --git a/src/version.c b/src/version.c index bb265a91b..64e2a6067 100644 --- 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, |