mirror of
https://github.com/git/git.git
synced 2024-09-29 16:41:53 +02:00
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>
This commit is contained in:
parent
3d84df43e1
commit
62273826fe
2
utf8.c
2
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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user