summaryrefslogtreecommitdiffstats
path: root/utf8.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2012-11-09 18:42:32 +0100
committerJeff King <peff@peff.net>2012-11-09 18:42:32 +0100
commit64b22a58949cd56c6ce586c1b9da1b1d32a2889e (patch)
tree151745b372c92aab204669af109fc36ecaa2735c /utf8.c
parentMerge branch 'rs/lock-correct-ref-during-delete' (diff)
parentformat-patch tests: check quoting/encoding in To: and Cc: headers (diff)
downloadgit-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.tar.xz
git-64b22a58949cd56c6ce586c1b9da1b1d32a2889e.zip
Merge branch 'js/format-2047'
Fixes many rfc2047 quoting issues in the output from format-patch. * js/format-2047: format-patch tests: check quoting/encoding in To: and Cc: headers format-patch: fix rfc2047 address encoding with respect to rfc822 specials format-patch: make rfc2047 encoding more strict format-patch: introduce helper function last_line_length() format-patch: do not wrap rfc2047 encoded headers too late format-patch: do not wrap non-rfc2047 headers too early utf8: fix off-by-one wrapping of text
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utf8.c b/utf8.c
index a544f15456..28791a7c31 100644
--- a/utf8.c
+++ b/utf8.c
@@ -353,7 +353,7 @@ retry:
c = *text;
if (!c || isspace(c)) {
- if (w < width || !space) {
+ if (w <= width || !space) {
const char *start = bol;
if (!c && text == start)
return w;