From 4c2601e7538414136f0e038ef4bb19c790c518b8 Mon Sep 17 00:00:00 2001 From: Bart Schaefer Date: Sat, 3 Jun 2000 16:37:24 +0000 Subject: Felix, 11734: Memory leak and doc error. --- ChangeLog | 5 ++++- Doc/Zsh/mod_complist.yo | 2 +- Src/Zle/compcore.c | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 271c54888..f8caab70a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,7 +1,10 @@ -2000-06-03 Bart Schaefer +2000-06-03 Bart Schaefer * 11736: Src/signals.c: Fix special scoping of TRAPEXIT. + * Felix: 11734: Src/Zle/compcore.c, Doc/Zsh/mod_complist.yo: Fix + one more memory leak and a doc mistake. + 2000-06-02 Peter Stephenson * 11733: Doc/Makefile.in: Solaris sed was behaving strangely with diff --git a/Doc/Zsh/mod_complist.yo b/Doc/Zsh/mod_complist.yo index d75100247..bc62b58ca 100644 --- a/Doc/Zsh/mod_complist.yo +++ b/Doc/Zsh/mod_complist.yo @@ -144,7 +144,7 @@ lines, respectively. In each of these cases the form with the uppercase letter will be replaced with a string of fixed width, padded to the right with spaces, while the lowercase form will not be padded. -If the option att(LISTPROMPT) is set, the completion code will not ask if +If the parameter tt(LISTPROMPT) is set, the completion code will not ask if the list should be shown. Instead it immediately starts displaying the list, stopping after the first screenful, showing the prompt at the bottom, waiting for a keypress after temporarily switching to the tt(listscroll) diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index df7e67e59..94f441229 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -733,6 +733,7 @@ callcompfunc(char *s, char *fn) } compinsert = (useline < 0 ? tricat("tab ", "", compinsert) : ztrdup(compinsert)); + zsfree(compexact); if (useexact) compexact = ztrdup("accept"); else { -- cgit 1.4.1