From ba968d10de8be0c8dcef4e652dd97e25fc495553 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 7 Jan 2002 14:43:40 +0000 Subject: make sure auto menu isn't started accidentially when bashautolist is set (16408) --- Src/Zle/compcore.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 8127fcd5d..7db5ffd13 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -842,7 +842,8 @@ callcompfunc(char *s, char *fn) } startauto = ((compinsert && !strcmp(compinsert, "automenu-unambiguous")) || - (bashlistfirst && (!compinsert || !*compinsert))); + (bashlistfirst && isset(AUTOMENU) && + (!compinsert || !*compinsert))); useexact = (compexact && !strcmp(compexact, "accept")); if (!comptoend || !*comptoend) -- cgit 1.4.1