about summary refs log tree commit diff
path: root/Src/Zle/zle_tricky.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-11-02 16:26:23 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-11-02 16:26:23 +0000
commitd94e67d6fd182860dca7580edc151315c048f6d7 (patch)
tree90e1a842f20a699ef8ddac31f72ff82bf30b6575 /Src/Zle/zle_tricky.c
parent8dfddcaaf4fff93ddd49cd30b8067bdc903ddcd9 (diff)
downloadzsh-d94e67d6fd182860dca7580edc151315c048f6d7.tar.gz
zsh-d94e67d6fd182860dca7580edc151315c048f6d7.tar.xz
zsh-d94e67d6fd182860dca7580edc151315c048f6d7.zip
22950: fix reverse-menu-complete as start of completion
Diffstat (limited to 'Src/Zle/zle_tricky.c')
-rw-r--r--Src/Zle/zle_tricky.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/Src/Zle/zle_tricky.c b/Src/Zle/zle_tricky.c
index b0fb6e8ac..1d5fe105e 100644
--- a/Src/Zle/zle_tricky.c
+++ b/Src/Zle/zle_tricky.c
@@ -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;