diff options
author | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-19 09:32:30 +0000 |
---|---|---|
committer | Sven Wischnowsky <wischnow@users.sourceforge.net> | 2000-06-19 09:32:30 +0000 |
commit | 2769b198812abf82cc3b074852714959213f266a (patch) | |
tree | 9e04e9f98e6974108c8e8e6511f29df62ff56bcb /Src/Zle/compcore.c | |
parent | 207758992aed766b96e511bf067b6505c9e783cd (diff) | |
download | zsh-2769b198812abf82cc3b074852714959213f266a.tar.gz zsh-2769b198812abf82cc3b074852714959213f266a.tar.xz zsh-2769b198812abf82cc3b074852714959213f266a.zip |
improve filename completion; use accept-exact for in-path completion; new fake style (11971)
Diffstat (limited to 'Src/Zle/compcore.c')
-rw-r--r-- | Src/Zle/compcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 7497d03b4..62d63000a 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -1914,8 +1914,8 @@ addmatches(Cadata dat, char **argv) if (aign || pign) { int il = ppl + sl + psl, addit = 1; - if (il > ilen) - ibuf = (char *) zhalloc((ilen = il) + 1); + if (il + 1> ilen) + ibuf = (char *) zhalloc((ilen = il) + 2); if (ppl) memcpy(ibuf, dat->ppre, ppl); |