diff options
author | Johannes Schindelin <Johannes.Schindelin@gmx.de> | 2007-03-02 15:28:00 +0100 |
---|---|---|
committer | Junio C Hamano <junkio@cox.net> | 2007-03-02 15:14:48 -0800 |
commit | 62273826fe977d4c1fa445edf9d0e4ab02274fa2 (patch) | |
tree | 3f4c4e307bd7e3dbb6b9401d89bfbde0990c03e7 /utf8.c | |
parent | 3d84df43e134d01cb790ddd47a14963ecd110152 (diff) | |
download | git-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |