From b4f837a8625ff6f97862f2a522fd4fc4294cc44d Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 6 Oct 2006 16:48:42 +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/compresult.c') diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c index 57510cd03..0fb50ad0e 100644 --- a/Src/Zle/compresult.c +++ b/Src/Zle/compresult.c @@ -2126,7 +2126,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) { @@ -2134,7 +2134,7 @@ bld_all_str(Cmatch all) strcat(buf, " "); strncat(buf, m->str, len); } - strcat(buf, " ..."); + strcat(buf, "..."); break; } } -- cgit 1.4.1