mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-14 11:41:07 +02:00
22950: fix reverse-menu-complete as start of completion
This commit is contained in:
parent
8dfddcaaf4
commit
d94e67d6fd
2 changed files with 14 additions and 2 deletions
|
@ -1,3 +1,9 @@
|
|||
2006-11-02 Peter Stephenson <pws@csr.com>
|
||||
|
||||
* 22950: Src/Zle/zle_tricky.c: starting menu completion
|
||||
with reverse-menu-complete used the first match instead
|
||||
of the last.
|
||||
|
||||
2006-11-02 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 22947: R. Ramkumar: Completion/Unix/Command/_mkdir:
|
||||
|
|
|
@ -345,8 +345,14 @@ mod_export int
|
|||
reversemenucomplete(char **args)
|
||||
{
|
||||
wouldinstab = 0;
|
||||
if (!menucmp)
|
||||
return menucomplete(args);
|
||||
if (!menucmp) {
|
||||
menucomplete(args);
|
||||
/*
|
||||
* Drop through, since we are now on the first item instead of
|
||||
* the last. We've already updated the display, so this is a
|
||||
* bit inefficient, but it's simple and it works.
|
||||
*/
|
||||
}
|
||||
|
||||
runhookdef(REVERSEMENUHOOK, NULL);
|
||||
return 0;
|
||||
|
|
Loading…
Reference in a new issue