changeset: 6639:e1cec1a958e9
user: Kevin McCarthy <[email protected]>
date: Sat Apr 30 13:05:43 2016 -0700
link: http://dev.mutt.org/hg/mutt/rev/e1cec1a958e9
Fix pager mini-index drawing when $pager_index_lines = 1 and $status_on_top.
When $pager_index_lines is 1, there is room for the index status line,
but not for any actual index entries. The index redraw part was
always calling menu_redraw_current() which doesn't actually check if
there is room for the current row.
This bug only shows up with $status_on_top, due to the order things
are redrawn.
diffs (13 lines):
diff -r d0746905cb3f -r e1cec1a958e9 pager.c
--- a/pager.c Sat Apr 30 10:50:43 2016 -0700
+++ b/pager.c Sat Apr 30 13:05:43 2016 -0700
@@ -1854,7 +1854,8 @@
{
/* redraw the pager_index indicator, because the
* flags for this message might have changed. */
- menu_redraw_current (index);
+ if (index_window->rows > 0)
+ menu_redraw_current (index);
/* print out the index status bar */
menu_status_line (buffer, sizeof (buffer), index, NONULL(Status));