mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
Merge of 22950: starting menu completion with reverse-menu-complete used the first match instead of the last.
This commit is contained in:
parent
2f592c7032
commit
c450d7eb1e
1 changed files with 8 additions and 2 deletions
|
@ -318,8 +318,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