Dominique Pelle wrote:

> Attached patch fixes the following item in Vim's TODO list:
> 
>   ":e dir<Tab>" with 'wildmode' set to "list" doesn't highlight directory 
> names
>   with a space. (Alexandre Provencio, 2009 Jun 9)
> 
> Steps to reproduce it:
> 
> In shell, run:
> 
>   $ mkdir foo\ bar
>   $ mkdir foobar
>   $ vim -u NONE -c 'set nocompatible wildmenu wildmode=list'
> 
> In Vim, type:
>   :e foo<Tab>
> 
> Notice that pressing tab key shows...
> 
> foo\ bar/  foobar/
> 
> ... where "foobar/" is correctly highlighted as a directory but "foo\ bar/"
> is not highlighted as a directory.  Both should be highlighted as directories.
> 
> I also notice that completing with <Tab> or with <C-d> gives a
> different result:
> 
>     :e foo<TAB>    shows:
>     foo\ bar/  foobar/
> 
>     :e foo<CTRL-D>    shows:
>     foo bar/  foobar/
> 
> Is the difference expected?  If not, what is expected?
> 
> Attached patch only fixes highlighting of directories as described in
> todo.txt but does not change the difference between <TAB> and
> <CTRL-D> since I don't know what is expected there.

Thanks!  I'll look into it soon.

-- 
ARTHUR:        What?
BLACK KNIGHT:  None shall pass.
ARTHUR:        I have no quarrel with you, good Sir knight, but I must cross
               this bridge.
BLACK KNIGHT:  Then you shall die.
                                  The Quest for the Holy Grail (Monty Python)

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\        download, build and distribute -- http://www.A-A-P.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui