diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | 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 <pws@csr.com> + * 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; } } |