Implement wrap format %w() as if it is a mode switch
commit02edd56b84f00c1a88c5602f5608033d4bc1cbff
authorRené Scharfe <rene.scharfe@lsrfire.ath.cx>
Sat, 17 Oct 2009 21:04:19 +0000 (17 23:04 +0200)
committerJunio C Hamano <gitster@pobox.com>
Fri, 23 Oct 2009 06:33:48 +0000 (22 23:33 -0700)
tree17af050048efe8d8fc0ca7fdf7931570163568f2
parent00d3947366a50a06da40989a1fd1e3f99885a4c3
Implement wrap format %w() as if it is a mode switch

I always considered line wrapping to be more similar to a colour, i.e. a
state that one can change and that is applied to all following text until
the next state change, except that it's always reset at the end of the
format string.

Here's a patch to implement this behaviour, using Dscho's
strbuf_add_wrapped_text()

Signed-off-by: Junio C Hamano <gitster@pobox.com>
pretty.c