summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorJohannes Schindelin <Johannes.Schindelin@gmx.de>2007-03-02 15:28:00 +0100
committerJunio C Hamano <junkio@cox.net>2007-03-02 15:14:48 -0800
commit62273826fe977d4c1fa445edf9d0e4ab02274fa2 (patch)
tree3f4c4e307bd7e3dbb6b9401d89bfbde0990c03e7 /utf8.c
parent3d84df43e134d01cb790ddd47a14963ecd110152 (diff)
downloadgit-62273826fe977d4c1fa445edf9d0e4ab02274fa2.tar.gz
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 <johannes.schindelin@gmx.de> Signed-off-by: Junio C Hamano <junkio@cox.net>
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 ea23a6e5dc..9e1a6d4964 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;
}