summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2006-10-06 16:48:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2006-10-06 16:48:42 +0000
commitb4f837a8625ff6f97862f2a522fd4fc4294cc44d (patch)
treed4ed885f4ba0c131859f97be4636cc2733d7f107
parente87b35c04ea6bfda7a0dbada9e3629343e71d4a1 (diff)
downloadzsh-b4f837a8625ff6f97862f2a522fd4fc4294cc44d.tar.gz
zsh-b4f837a8625ff6f97862f2a522fd4fc4294cc44d.zip
22820: this time, fix handling of long accumulated completion line
-rw-r--r--Src/Zle/compresult.c4
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;
}
}