1
0
Fork 0
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:
Paul Ackersviller 2007-11-05 01:53:23 +00:00
parent 2f592c7032
commit c450d7eb1e

View file

@ -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;