From e9fbed31698ef0591c53248f60e922cd8ae3bf2d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 6 Oct 2006 16:49:27 +0000 Subject: 22820: this time, fix handling of long accumulated completion line --- Src/Zle/compresult.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 94c651101..213189f11 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -2069,7 +2069,7 @@ bld_all_str(Cmatch all) if (add) strcat(buf, " "); strcat(buf, m->str); - len -= t + add; + len -= t; add = 1; } else { if (len > add + 2) { @@ -2077,7 +2077,7 @@ bld_all_str(Cmatch all) strcat(buf, " "); strncat(buf, m->str, len); } - strcat(buf, " ..."); + strcat(buf, "..."); break; } } -- cgit 1.4.1