log --format: don't ignore %w() at the start of format string
This fixes e.g. --format='%w(72)%s'. Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
02edd56b84
commit
32ca424912
2
pretty.c
2
pretty.c
@ -618,7 +618,7 @@ static void rewrap_message_tail(struct strbuf *sb,
|
||||
if (c->width == new_width && c->indent1 == new_indent1 &&
|
||||
c->indent2 == new_indent2)
|
||||
return;
|
||||
if (c->wrap_start && c->wrap_start < sb->len)
|
||||
if (c->wrap_start < sb->len)
|
||||
strbuf_wrap(sb, c->wrap_start, c->width, c->indent1, c->indent2);
|
||||
c->wrap_start = sb->len;
|
||||
c->width = new_width;
|
||||
|
Loading…
Reference in New Issue
Block a user