Karsten Hopp bcc633
To: vim-dev@vim.org
Karsten Hopp bcc633
Subject: Patch 7.2.401
Karsten Hopp bcc633
Fcc: outbox
Karsten Hopp bcc633
From: Bram Moolenaar <Bram@moolenaar.net>
Karsten Hopp bcc633
Mime-Version: 1.0
Karsten Hopp bcc633
Content-Type: text/plain; charset=UTF-8
Karsten Hopp bcc633
Content-Transfer-Encoding: 8bit
Karsten Hopp bcc633
------------
Karsten Hopp bcc633
Karsten Hopp bcc633
Patch 7.2.401
Karsten Hopp bcc633
Problem:    ":e dir<Tab>" with 'wildmode' set to "list" doesn't highlight
Karsten Hopp bcc633
	    directory names with a space. (Alexandre Provencio)
Karsten Hopp bcc633
Solution:   Remove the backslash before checking if the name is a directory.
Karsten Hopp bcc633
	    (Dominique Pelle)
Karsten Hopp bcc633
Files:	    src/ex_getln.c
Karsten Hopp bcc633
Karsten Hopp bcc633
Karsten Hopp bcc633
*** ../vim-7.2.400/src/ex_getln.c	2010-03-02 17:23:10.000000000 +0100
Karsten Hopp bcc633
--- src/ex_getln.c	2010-03-17 19:00:54.000000000 +0100
Karsten Hopp bcc633
***************
Karsten Hopp bcc633
*** 3948,3955 ****
Karsten Hopp bcc633
  					  || xp->xp_context == EXPAND_SHELLCMD
Karsten Hopp bcc633
  					  || xp->xp_context == EXPAND_BUFFERS)
Karsten Hopp bcc633
  		{
Karsten Hopp bcc633
! 			    /* highlight directories */
Karsten Hopp bcc633
! 		    j = (mch_isdir(files_found[k]));
Karsten Hopp bcc633
  		    if (showtail)
Karsten Hopp bcc633
  			p = L_SHOWFILE(k);
Karsten Hopp bcc633
  		    else
Karsten Hopp bcc633
--- 3948,3959 ----
Karsten Hopp bcc633
  					  || xp->xp_context == EXPAND_SHELLCMD
Karsten Hopp bcc633
  					  || xp->xp_context == EXPAND_BUFFERS)
Karsten Hopp bcc633
  		{
Karsten Hopp bcc633
! 		    char_u	*halved_slash;
Karsten Hopp bcc633
! 
Karsten Hopp bcc633
! 		    /* highlight directories */
Karsten Hopp bcc633
! 		    halved_slash = backslash_halve_save(files_found[k]);
Karsten Hopp bcc633
! 		    j = mch_isdir(halved_slash);
Karsten Hopp bcc633
! 		    vim_free(halved_slash);
Karsten Hopp bcc633
  		    if (showtail)
Karsten Hopp bcc633
  			p = L_SHOWFILE(k);
Karsten Hopp bcc633
  		    else
Karsten Hopp bcc633
*** ../vim-7.2.400/src/version.c	2010-03-17 18:15:17.000000000 +0100
Karsten Hopp bcc633
--- src/version.c	2010-03-17 19:12:22.000000000 +0100
Karsten Hopp bcc633
***************
Karsten Hopp bcc633
*** 683,684 ****
Karsten Hopp bcc633
--- 683,686 ----
Karsten Hopp bcc633
  {   /* Add new patch number below this line */
Karsten Hopp bcc633
+ /**/
Karsten Hopp bcc633
+     401,
Karsten Hopp bcc633
  /**/
Karsten Hopp bcc633
Karsten Hopp bcc633
-- 
Karsten Hopp bcc633
Two cows are standing together in a field.  One asks the other:
Karsten Hopp bcc633
"So what do you think about this Mad Cow Disease?"
Karsten Hopp bcc633
The other replies: "That doesn't concern me. I'm a helicopter."
Karsten Hopp bcc633
Karsten Hopp bcc633
 /// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net   \\\
Karsten Hopp bcc633
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
Karsten Hopp bcc633
\\\        download, build and distribute -- http://www.A-A-P.org        ///
Karsten Hopp bcc633
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///