about summary refs log tree commit diff
path: root/Src/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-07-30 19:58:31 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-07-30 19:58:31 +0000
commitf5bbc619bd76fe871ecd241ca3a2d698fa509398 (patch)
tree3ea2f689f30743688a72e32e80874eede12141a5 /Src/Zle
parent663b9376ad64be2523cc22b9ec818defac53f0d9 (diff)
downloadzsh-f5bbc619bd76fe871ecd241ca3a2d698fa509398.tar.gz
zsh-f5bbc619bd76fe871ecd241ca3a2d698fa509398.tar.xz
zsh-f5bbc619bd76fe871ecd241ca3a2d698fa509398.zip
22565: Fix bug after failed menucompletion with accept-and-menu-complete?
Diffstat (limited to 'Src/Zle')
-rw-r--r--Src/Zle/compcore.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 38b1934e2..8aa44d319 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -466,12 +466,12 @@ before_complete(UNUSED(Hookdef dummy), int *lst)
 
     /* If we are doing a menu-completion... */
 
-    if (menucmp && *lst != COMP_LIST_EXPAND && 
+    if (minfo.cur && menucmp && *lst != COMP_LIST_EXPAND && 
 	(menucmp != 1 || !compwidget || compwidget == lastcompwidget)) {
 	do_menucmp(*lst);
 	return 1;
     }
-    if (menucmp && validlist && *lst == COMP_LIST_COMPLETE) {
+    if (minfo.cur && menucmp && validlist && *lst == COMP_LIST_COMPLETE) {
 	showinglist = -2;
 	onlyexpl = listdat.valid = 0;
 	return 1;