diff options
author | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-05 01:53:23 +0000 |
---|---|---|
committer | Paul Ackersviller <packersv@users.sourceforge.net> | 2007-11-05 01:53:23 +0000 |
commit | c450d7eb1e1656b15ff91622a320f0072fe6a178 (patch) | |
tree | bf3f4a67b3a8d555787bcc3ad0d8e25826bec33f /Src/Zle/zle_tricky.c | |
parent | 2f592c70328052e967cb0bf68f772d658b878c6f (diff) | |
download | zsh-c450d7eb1e1656b15ff91622a320f0072fe6a178.tar.gz zsh-c450d7eb1e1656b15ff91622a320f0072fe6a178.tar.xz zsh-c450d7eb1e1656b15ff91622a320f0072fe6a178.zip |
Merge of 22950: starting menu completion with reverse-menu-complete used the first match instead of the last.
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r-- | Src/Zle/zle_tricky.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c index 9bd69a192..ecd3d98bc 100644 --- a/Src/Zle/zle_tricky.c +++ b/Src/Zle/zle_tricky.c @@ -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; |