about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2015-06-29 01:53:59 +0200
committerOliver Kiddle <opk@zsh.org>2015-06-29 01:54:44 +0200
commit44c56f3af57d93d5d92ce18893cb020f8f36e2f3 (patch)
tree0558165956fa23c7f9fabd364f58a37cf0e648d4 /Src/Zle/zle_tricky.c
parentfbc97e72e8f3f0b9be9bd3f24f36a1e8e5a6701d (diff)
downloadzsh-44c56f3af57d93d5d92ce18893cb020f8f36e2f3.tar.gz
zsh-44c56f3af57d93d5d92ce18893cb020f8f36e2f3.tar.xz
zsh-44c56f3af57d93d5d92ce18893cb020f8f36e2f3.zip
35627: make reverse-menu-complete start with the last match in
menu selection
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index 7217abc7a..e8dc93e74 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -345,14 +345,8 @@ mod_export int
 reversemenucomplete(char **args)
 {
     wouldinstab = 0;
-    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.
-	 */
-    }
+    zmult = -zmult;
+    menucomplete(args);
 
     runhookdef(REVERSEMENUHOOK, NULL);
     return 0;