From f5bbc619bd76fe871ecd241ca3a2d698fa509398 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Sun, 30 Jul 2006 19:58:31 +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 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; -- cgit 1.4.1