From 6c3be64e8d3e746f1fd2c9a5a9fe2a28d9a44573 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 15 Feb 2000 09:13:38 +0000 Subject: zsh-workers/9732 --- Src/Zle/complist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Src/Zle/complist.c b/Src/Zle/complist.c index d19d5e80c..9acccc17a 100644 --- a/Src/Zle/complist.c +++ b/Src/Zle/complist.c @@ -780,7 +780,7 @@ complistmatches(Hookdef dummy, Chdata dat) if (inselect) clearflag = 0; - if (asklist() || !clearflag) { + if (asklist()) { amatches = oamatches; return (noselect = 1); } @@ -800,7 +800,8 @@ complistmatches(Hookdef dummy, Chdata dat) last_cap = (char *) zhalloc(max_caplen + 1); *last_cap = '\0'; - if (!printlist(1, clprintm, (mselect >= 0)) || listdat.nlines >= lines) + if (!printlist(1, clprintm, (mselect >= 0)) || listdat.nlines >= lines || + !clearflag) noselect = 1; amatches = oamatches; -- cgit 1.4.1