- the calculation of number of lines to scroll up/down should not
depend on whether the number of rows in the pager/index/terminal is
odd or even.
- this patch will make the behaviour symmetric such that in both cases
(even/odd number of rows) scrolling up and down by half a page (or the
other way round) will get you back to the exact same line as before.
case OP_HALF_UP:
if (rd.topline)
- rd.topline = upNLines (rd.pager_window->rows/2, rd.lineInfo, rd.topline, rd.hideQuoted);
+ rd.topline = upNLines (rd.pager_window->rows/2 + rd.pager_window->rows%2,
+ rd.lineInfo, rd.topline, rd.hideQuoted);
else
mutt_error _("Top of message is shown.");
break;