From ad31ce0db8118be03843711cfe7cf418835fb114 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 27 Apr 2000 08:21:10 +0000 Subject: renamed parameters for menu selection to MENUSELECT, MENUPROMPT and MENUSCROLL; no special value for LISTMAX to turn on list scrolling, this is done by setting LISTPROMPT now; default values for LISTPROMPT and MENUPROMPT when set but empty (10959) --- Src/Zle/compresult.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Src/Zle/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index f40ee6724..c804fdcf2 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -1590,8 +1590,6 @@ calclist(int showall) mod_export int asklist(void) { - int lmax = (complistmax ? (int) mathevali(complistmax) : 0); - /* Set the cursor below the prompt. */ trashzle(); showinglist = listshown = 0; @@ -1601,9 +1599,9 @@ asklist(void) /* Maybe we have to ask if the user wants to see the list. */ if ((!minfo.cur || !minfo.asked) && - ((lmax > 0 && listdat.nlist >= lmax) || - (lmax < 0 && listdat.nlines <= -lmax) || - (!lmax && listdat.nlines >= lines))) { + ((complistmax > 0 && listdat.nlist >= complistmax) || + (complistmax < 0 && listdat.nlines <= -complistmax) || + (!complistmax && listdat.nlines >= lines))) { int qup, l; zsetterm(); -- cgit 1.4.1