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.
{
/* 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));