contrib/subtree: use %B for split subject/body
[gitweb.git] / utf8.c
diff --git a/utf8.c b/utf8.c
index 6a52834576e23b15de7a38ef407fdb41179dbe4a..5c61bbe1131e7bbdd939c8b815bd5222b872e3fb 100644 (file)
--- a/utf8.c
+++ b/utf8.c
@@ -353,7 +353,7 @@ int strbuf_add_wrapped_text(struct strbuf *buf,
 
                c = *text;
                if (!c || isspace(c)) {
-                       if (w < width || !space) {
+                       if (w <= width || !space) {
                                const char *start = bol;
                                if (!c && text == start)
                                        return w;