@matheusbsbs / matheus-bagliano / commits / 32ca424912
Fork 0

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>

René Scharfe committed Nov 8, 2009 at 02:04 UTC 32ca42491246eb00d226826039fff18d58b57081
1 file changed +1 -1
pretty.c
+1 -1
@@ -618,7 +618,7 @@ static void rewrap_message_tail(struct strbuf *sb,
618 if (c->width == new_width && c->indent1 == new_indent1 &&
619 c->indent2 == new_indent2)
620 return;
621 - if (c->wrap_start && c->wrap_start < sb->len)
621 + if (c->wrap_start < sb->len)
622 strbuf_wrap(sb, c->wrap_start, c->width, c->indent1, c->indent2);
623 c->wrap_start = sb->len;
624 c->width = new_width;