about summary refs log tree commit diff
path: root/Src/Zle/compcore.c
diff options
context:
space:
mode:
authorOliver Kiddle <opk@zsh.org>2016-03-07 13:15:40 +0100
committerOliver Kiddle <opk@zsh.org>2016-03-07 13:15:40 +0100
commit8c29b34032ebb714d2c593286aa29e5c64be55ab (patch)
tree31473652c376b1d4c336feda1cf9162aafecb5bc /Src/Zle/compcore.c
parent28c46c1bfb03fd7d1f563147435a4071b446f780 (diff)
downloadzsh-8c29b34032ebb714d2c593286aa29e5c64be55ab.tar.gz
zsh-8c29b34032ebb714d2c593286aa29e5c64be55ab.tar.xz
zsh-8c29b34032ebb714d2c593286aa29e5c64be55ab.zip
38043: allow any completion widget to cycle matches for menu completion to fix reverse menu completion
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r--Src/Zle/compcore.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index ae3a64074..ae7068fc9 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -30,10 +30,6 @@
 #include "complete.mdh"
 #include "compcore.pro"
 
-/* The last completion widget called. */
-
-static Widget lastcompwidget;
-
 /* Flags saying what we have to do with the result. */
 
 /**/
@@ -471,8 +467,7 @@ before_complete(UNUSED(Hookdef dummy), int *lst)
 
     /* If we are doing a menu-completion... */
 
-    if (minfo.cur && menucmp && *lst != COMP_LIST_EXPAND && 
-	(menucmp != 1 || !compwidget || compwidget == lastcompwidget)) {
+    if (minfo.cur && menucmp && *lst != COMP_LIST_EXPAND) {
 	do_menucmp(*lst);
 	return 1;
     }
@@ -481,7 +476,6 @@ before_complete(UNUSED(Hookdef dummy), int *lst)
 	onlyexpl = listdat.valid = 0;
 	return 1;
     }
-    lastcompwidget = compwidget;
 
     /* We may have to reset the cursor to its position after the   *
      * string inserted by the last completion. */