summaryrefslogtreecommitdiff
path: root/Src/Zle/compresult.c
diff options
context:
space:
mode:
authorSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-27 08:21:10 +0000
committerSven Wischnowsky <wischnow@users.sourceforge.net>2000-04-27 08:21:10 +0000
commitad31ce0db8118be03843711cfe7cf418835fb114 (patch)
treee98368efd7d4e4c77af37c73362df30c0fdf9db3 /Src/Zle/compresult.c
parentd00d0f0efa8e2021c9aa80d8f22c332a3ce3eb7c (diff)
downloadzsh-ad31ce0db8118be03843711cfe7cf418835fb114.tar.gz
zsh-ad31ce0db8118be03843711cfe7cf418835fb114.zip
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)
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r--Src/Zle/compresult.c8
1 files changed, 3 insertions, 5 deletions
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();