Dominique Pelle wrote:
> Recent patch 7.2.401 fixed a bug with syntax highlighting of directories
> with 'set wildmode=list'. I still see 2 other bugs with syntax highlighting
> of directories.
>
> Bug #1:
>
> Starting vim with...
>
> $ vim -u NONE -c 'set nocompatible wildmode=list'
>
> ... I notice that directories in are _not_ highlighted when doing:
>
> :e ~/<Tab>
>
> However, directories are correctly highlighted when doing:
>
> :e ~user/<Tab> (where user is an actual user name)
>
> or:
>
> :e $HOME<Tab>
>
> or:
>
> :cd ~
> :e <Tab>
>
>
> Bug #2:
>
> When completing with CTRL-D rather than Tab, backslash_halve_save(...)
> should not be called since somehow, completion with CTRL-D does not
> add the backslashes in file names unlike completion with <Tab>.
>
> Attached patch fixes both issues.
>
> Here is a test case:
>
> # Create some odd directories for testing directory highlighting
> $ mkdir -p ~/test_dir/{foobar,\\\\foobar,\$HOME}
>
> $ ls -F test_dir
> foobar/ \\foobar/ $HOME/
>
> # Then verify that directories are correctly highlighted when doing:
>
> :e ~/test_dir/<Tab>
>
> and:
>
> :e ~/test_dir/<C-d>
>
> Bug #1 was already existing before patch 7.2.401
> Bug #2 was introduced in patch 7.2.401
Thanks, I'll look into it soon.
--
An indication you must be a manager:
You feel sorry for Dilbert's boss.
/// Bram Moolenaar -- [email protected] -- 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
To unsubscribe from this group, send email to
vim_dev+unsubscribegooglegroups.com or reply to this email with the words
"REMOVE ME" as the subject.