diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-07-04 09:29:20 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2002-07-04 09:29:20 +0000 |
commit | c2dd10edc9136f11746b7cbedf5801106a2e0541 (patch) | |
tree | 150e264f5a7f5c1c7e25d5ef82dc3c0a86357a6b /Src/Zle/compcore.c | |
parent | d98faffcaf274db165cde607f546d62a30853327 (diff) | |
download | zsh-c2dd10edc9136f11746b7cbedf5801106a2e0541.tar.gz zsh-c2dd10edc9136f11746b7cbedf5801106a2e0541.tar.xz zsh-c2dd10edc9136f11746b7cbedf5801106a2e0541.zip |
in menu selection, use copies of comp{pre,suf}fix to make sure they exist; fix display problem with non-empty iprefix (17403)
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 4 |
1 files changed, 4 insertions, 0 deletions
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) { |