Christian Brabandt wrote:
> Bram,
> While looking into the improved cscope test from Dominique and trying to
> find out, how to get commandline completion, I noticed a bug.
>
> Try this:
> vim -u NONE -N
> :echo getcompletion('', 'cscope')
> ['add', 'find', 'help', 'kill', 'reset', 'show']
> Now enter:
> :cscope find <c-d><esc>
> :echo getcompletion('', 'cscope')
> ['a', 'c', 'd', 'e', 'f', 'g', 'i', 's', 't']
> :cscope kill <c-d><esc>
> :echo getcompletion('', 'cscope')
> []
>
> So it looks like, depending on when <c-d> was used last time in the
> commandline, that state is remembered and used again for the
> getcompletion() function.
>
> Sorry, I have currently no time to look into the issue myself, just
> thought I report what I found out.
Thanks for reporting. This getcompletion() function may have a few more
problems like this, since it's doing only half of what
set_one_cmd_context() is doing. I'll fix this one, please look out for
others.
--
ARTHUR: I've said I'm sorry about the old woman, but from the behind you
looked ...
DENNIS: What I object to is that you automatically treat me like an inferior...
ARTHUR: Well ... I AM king.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD
/// 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.