From a8400e82b14cf69b4952d34e7d30bbe454c63fcc Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 13 Apr 2000 08:05:57 +0000 Subject: display number of matches again when asking if a completion list should be shown (only when not zero) (10724) --- Src/Zle/compresult.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'Src/Zle/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 3322c3157..c7217778c 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1587,10 +1587,15 @@ mod_export int asklist(void) ((complistmax > 0 && listdat.nlist >= complistmax) || (complistmax < 0 && listdat.nlines <= -complistmax) || (!complistmax && listdat.nlines >= lines))) { - int qup; + int qup, l; + zsetterm(); - qup = printfmt("zsh: do you wish to see all %n lines? ", - listdat.nlines, 1, 1); + l = (listdat.nlist > 0 ? + fprintf(shout, "zsh: do you wish to see all %d possibilities (%d lines)? ", + listdat.nlist, listdat.nlines) : + fprintf(shout, "zsh: do you wish to see all %d lines? ", + listdat.nlines)); + qup = ((l + columns - 1) / columns) - 1; fflush(shout); if (getzlequery() != 'y') { if (clearflag) { -- cgit 1.4.1