From c2dd10edc9136f11746b7cbedf5801106a2e0541 Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Thu, 4 Jul 2002 09:29:20 +0000 Subject: in menu selection, use copies of comp{pre,suf}fix to make sure they exist; fix display problem with non-empty iprefix (17403) --- Src/Zle/compcore.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Src/Zle/compcore.c') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index e0aef2864..06229cfc7 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -670,6 +670,10 @@ callcompfunc(char *s, char *fn) untokenize(ss); compsuffix = ztrdup(ss); } + zsfree(complastprefix); + zsfree(complastsuffix); + complastprefix = ztrdup(compprefix); + complastsuffix = ztrdup(compsuffix); zsfree(compiprefix); zsfree(compisuffix); if (parwb < 0) { -- cgit 1.4.1