Dominique Pellé wrote:

> >> 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.
> 
> Hi Bram
> 
> I see one more bug like this:
> 
> :echo getcompletion('', 'sign')
> ['define', 'jump', 'list', 'place', 'undefine', 'unplace']
> 
> :sign list <c-d><esc>
> 
> :echo getcompletion('', 'sign')
> []
> 
> Fixed in attached  patch.  I'll keep looking for more of these bugs.

Thanks.  I'll add a test.

-- 
ARTHUR:       You are indeed brave Sir knight, but the fight is mine.
BLACK KNIGHT: Had enough?
ARTHUR:       You stupid bastard.  You havn't got any arms left.
                 "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.

Raspunde prin e-mail lui