Ticket #2135: End button in MC viewer jumps too far
commit525320071c661c874295fa6dbb83317bb0d9ebfa
authorTomasz Pala <gotar@pld-linux.org>
Fri, 5 Nov 2010 11:19:19 +0000 (5 13:19 +0200)
committerSlava Zanko <slavazanko@gmail.com>
Fri, 5 Nov 2010 11:23:38 +0000 (5 13:23 +0200)
treef67fb4b4fe98eb67b0b9aa03bd0a7b37acd46af3
parentd6e843fc712fd30f9b0ba59918559a8f6db3f729
Ticket #2135: End button in MC viewer jumps too far

Previous solutions have broken one of the viewer features (http://www.midnight-commander.org/ticket/1778)

What suggest is fixing PgDn in a way, that it switches to one-line mode after EOF and add a check to ensure,
that at least one last line stays visible (4.7.1 behaviour of end/pgdn was irritating indeed).

With this patch, PageDown at the last page scrolls file line by line instead of entire page.
This is feature, not a bug. :)

Signed-off-by: Slava Zanko <slavazanko@gmail.com>
src/viewer/move.c