From: Johannes Schindelin Date: Fri, 2 Mar 2007 14:28:00 +0000 (+0100) Subject: print_wrapped_text: fix output for negative indent X-Git-Tag: v1.5.1-rc1~106 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=62273826fe977d4c1fa445edf9d0e4ab02274fa2;p=git.git print_wrapped_text: fix output for negative indent When providing a negative indent, it means that -indent columns were already printed. Fix a bug where the function ate the first character if already the first word did not fit into the first line. Signed-off-by: Johannes Schindelin Signed-off-by: Junio C Hamano --- diff --git a/utf8.c b/utf8.c index ea23a6e5d..9e1a6d496 100644 --- a/utf8.c +++ b/utf8.c @@ -268,7 +268,7 @@ int print_wrapped_text(const char *text, int indent, int indent2, int width) } else { putchar('\n'); - text = bol = space + 1; + text = bol = space + isspace(*space); space = NULL; w = indent = indent2; }