about summary refs log tree commit diff
path: root/Src/Zle/compcore.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/compcore.c
parentd00d0f0efa8e2021c9aa80d8f22c332a3ce3eb7c (diff)
downloadzsh-ad31ce0db8118be03843711cfe7cf418835fb114.tar.gz
zsh-ad31ce0db8118be03843711cfe7cf418835fb114.tar.xz
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/compcore.c')
-rw-r--r--Src/Zle/compcore.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c
index 0c989c427..0ecd7da79 100644
--- a/Src/Zle/compcore.c
+++ b/Src/Zle/compcore.c
@@ -296,8 +296,7 @@ do_completion(Hookdef dummy, Compldat dat)
     comppatinsert = ztrdup("menu");
     forcelist = 0;
     haspattern = 0;
-    zsfree(complistmax);
-    complistmax = ztrdup(getsparam("LISTMAX"));
+    complistmax = getiparam("LISTMAX");
     zsfree(complastprompt);
     complastprompt = ztrdup(((isset(ALWAYSLASTPROMPT) && zmult == 1) ||
 			     (unset(ALWAYSLASTPROMPT) && zmult != 1)) ?