From 5201b90652a9220ce08d7952f2963656fa392d9d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 30 Jul 2006 20:16:22 +0000 Subject: 22565: Fix bug after failed menucompletion with accept-and-menu-complete? --- Src/Zle/compcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 084895ae1..0547f9b33 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -454,12 +454,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; -- cgit 1.4.1