Hi Dominique,

On Wed, Jan 25, 2017 at 3:06 PM, Dominique Pellé
<[email protected]> wrote:
> Hi
>
> 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).
>

The argument is not expanded because the command is defined
to take zero arguments. If you define the user command with
"-nargs=1" or "-nargs=*", then the argument will be expanded.

I think if the command is defined to not accept any arguments,
then CTRL-D without any argument should not list all the
possible completions.

- Yegappan

>
> 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.
>
> Regards
> Dominique
>

-- 
-- 
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.

Raspunde prin e-mail lui