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)
diff --git a/src/ex_getln.c b/src/ex_getln.c
index 0f0f170..dea4b13 100644
--- a/src/ex_getln.c
+++ b/src/ex_getln.c
@@ -3948,8 +3948,12 @@
|| 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 bb265a9..64e2a606 100644
--- a/src/version.c
+++ b/src/version.c
@@ -682,6 +682,8 @@
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 401,
+/**/
400,
/**/
399,