Dominique wrote:
> While adding more tests for user-defined function
> completion, I noticed this bug:
>
> :command! -complete=color Foo :
>
> Then if I type:
>
> :Foo <C-D>
>
> I see completion for colorschemes as expected:
>
> blue default desert evening (...)
>
> Good so far. However, if I now type:
>
> :Foo de<C-D>
>
> ... I would expect completion to complete to:
>
> default desert
>
> ... but it does not work (no completion). I have not
> had the time to investigate yet. It's not specific
> to -complete=color, bug happens with all other
> kinds of completion in user defined functions.
Turns out this works as intended. The command needs to be defined as:
:command! -complete=color -nargs=1 Foo :
--
Google is kind of like Dr. Who's Tardis; it's weirder on the
inside than on the outside...
/// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
/// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\ an exciting new programming language -- http://www.Zimbu.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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.