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 --- ChangeLog | 3 +++ Src/Zle/compresult.c | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index c9ba931c3..836e20cdc 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ 2006-10-06 Peter Stephenson + * 22820: Src/Zle/compresult.c: no, users/10791 wasn't right + and now I'm bored so this will have to do. + * 10791: Src/Zle/compresult.c: accumulated completions on single line could cause border disputes resulting in skirmishes with cursor position. 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