From 62273826fe977d4c1fa445edf9d0e4ab02274fa2 Mon Sep 17 00:00:00 2001 From: Johannes Schindelin Date: Fri, 2 Mar 2007 15:28:00 +0100 Subject: [PATCH] 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 --- utf8.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.26.2