From 2769b198812abf82cc3b074852714959213f266a Mon Sep 17 00:00:00 2001 From: Sven Wischnowsky Date: Mon, 19 Jun 2000 09:32:30 +0000 Subject: improve filename completion; use accept-exact for in-path completion; new fake style (11971) --- Src/Zle/compcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle/compcore.c') 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); -- cgit 1.4.1