about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
Diffstat (limited to 'Src')
-rw-r--r--Src/Zle/compresult.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/Zle/compresult.c b/Src/Zle/compresult.c
index e28212c19..57510cd03 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;
+		len -= t + add;
 		add = 1;
 	    } else {
 		if (len > add + 2) {