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 <johannes.schindelin@xxxxxx> --- On Fri, 2 Mar 2007, Junio C Hamano wrote: > Is it just me or is your word wrapper misbehaving? It was. It separated printing of the file name and of the comma. This is fixed with my next reply, but it triggered this small bug. utf8.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/utf8.c b/utf8.c index ea23a6e..9e1a6d4 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; } -- 1.5.0.2.780.g57e5-dirty - To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html