Skip to content

Commit 32ca424

Browse files
René Scharfegitster
authored andcommitted
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>
1 parent 02edd56 commit 32ca424

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pretty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -618,7 +618,7 @@ static void rewrap_message_tail(struct strbuf *sb,
618618
if (c->width == new_width && c->indent1 == new_indent1 &&
619619
c->indent2 == new_indent2)
620620
return;
621-
if (c->wrap_start && c->wrap_start < sb->len)
621+
if (c->wrap_start < sb->len)
622622
strbuf_wrap(sb, c->wrap_start, c->width, c->indent1, c->indent2);
623623
c->wrap_start = sb->len;
624624
c->width = new_width;

0 commit comments

Comments
 (0)