diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-06 16:48:42 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2006-10-06 16:48:42 +0000 |
commit | b4f837a8625ff6f97862f2a522fd4fc4294cc44d (patch) | |
tree | d4ed885f4ba0c131859f97be4636cc2733d7f107 /Src/Zle/compresult.c | |
parent | e87b35c04ea6bfda7a0dbada9e3629343e71d4a1 (diff) | |
download | zsh-b4f837a8625ff6f97862f2a522fd4fc4294cc44d.tar.gz zsh-b4f837a8625ff6f97862f2a522fd4fc4294cc44d.tar.xz zsh-b4f837a8625ff6f97862f2a522fd4fc4294cc44d.zip |
22820: this time, fix handling of long accumulated completion line
Diffstat (limited to 'Src/Zle/compresult.c')
-rw-r--r-- | Src/Zle/compresult.c | 4 |
1 files changed, 2 insertions, 2 deletions
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; } } |