]> granicus.if.org Git - mutt/commit
Remove useless else branch in the $smart_wrap code. (see #3857)
authorKevin McCarthy <kevin@8t8.us>
Wed, 15 Nov 2017 22:53:24 +0000 (14:53 -0800)
committerKevin McCarthy <kevin@8t8.us>
Wed, 15 Nov 2017 22:53:24 +0000 (14:53 -0800)
commit78d2c197e8eb79b67e07c44a9a740d4d865ed96a
tree026d57cfe8ee983fea72af7bb1957b6c3d1ca1a1
parentb3940ed40312470370a03f092a1c234b1ebe660e
Remove useless else branch in the $smart_wrap code. (see #3857)

Thanks to Vincent Lefèvre for noticing the nested else was redundant,
since buf_ptr is already set to "buf + cnt" after the format_line()
call.

This allows us to merge the inner and outer if statement, resulting in
simpler code.
pager.c