]> granicus.if.org Git - neomutt/commit
Fix columns used for $status_format and $pager_format in the pager.
authorKevin McCarthy <kevin@8t8.us>
Tue, 7 Jun 2016 20:27:45 +0000 (13:27 -0700)
committerKevin McCarthy <kevin@8t8.us>
Tue, 7 Jun 2016 20:27:45 +0000 (13:27 -0700)
commitb65edf2bee6aefaacb9147fec9e5a546b699d709
tree9a4bc2ec6af4c88e62b47a2fbc521fc9665977ff
parentb481562b61087be99b07a6408d6c07571946fe85
Fix columns used for $status_format and $pager_format in the pager.

The code was hardcoding use of MuttIndexWindow->cols in
mutt_make_string_info() and MuttStatusWindow->cols in
menu_status_line().

Add a parameter to mutt_make_info_string().  Change menu_status_line()
to use menu->statuswin->cols, falling back to MuttStatusWindow if no
menu is passed in.

Set menu->statuswin appropriately inside pager.c.

Thanks to Richard Russon for tracking down this problem, and for the initial patch.
commands.c
hdrline.c
pager.c
protos.h
status.c