From 213a453d08fe01618856b064d1d2a2884980e02a Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Wed, 4 Oct 2000 13:24:45 +0000 Subject: don't forget a displayed list when starting menu completion (12884) --- Src/Zle/compcore.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Src') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index e2dbe4909..0c9fcd676 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -282,7 +282,7 @@ int lastend; int do_completion(Hookdef dummy, Compldat dat) { - int ret = 0, lst = dat->lst, incmd = dat->incmd; + int ret = 0, lst = dat->lst, incmd = dat->incmd, osl = showinglist; char *s = dat->s; char *opm; LinkNode n; @@ -412,6 +412,9 @@ do_completion(Hookdef dummy, Compldat dat) if (nmatches > 1 && diffmatches) { /* There is more than one match. */ ret = do_ambiguous(); + + if (!showinglist && uselist && listshown && (usemenu == 2 || oldlist)) + showinglist = osl; } else if (nmatches == 1 || (nmatches > 1 && !diffmatches)) { /* Only one match. */ Cmgroup m = amatches; -- cgit 1.4.1