Sun Oct 25 12:39:34 2009 Michael Jennings (mej)

Fix for scrolling limitations from Cliff Miller <cbm@whatexit.org>.
----------------------------------------------------------------------


SVN revision: 43282
This commit is contained in:
Michael Jennings 2009-10-25 20:33:35 +00:00
parent 42a135456a
commit e59a5a4e95
2 changed files with 5 additions and 1 deletions

View File

@ -5613,3 +5613,7 @@ Sun Oct 25 12:36:01 2009 Michael Jennings (mej)
Patch for FreeBSD UNIX98 pty support from Ed Schouten <ed@80386.nl>.
----------------------------------------------------------------------
Sun Oct 25 12:39:34 2009 Michael Jennings (mej)
Fix for scrolling limitations from Cliff Miller <cbm@whatexit.org>.
----------------------------------------------------------------------

View File

@ -1543,7 +1543,7 @@ scr_page(int direction, int nlines)
D_SCREEN(("scr_page(%s, %d) view_start:%d\n", ((direction == UP) ? "UP" : "DN"), nlines, TermWin.view_start));
start = TermWin.view_start;
BOUND(nlines, 1, TERM_WINDOW_GET_REPORTED_ROWS());
BOUND(nlines, 1, TermWin.nscrolled);
TermWin.view_start += ((direction == UP) ? nlines : (-nlines));
BOUND(TermWin.view_start, 0, TermWin.nscrolled);
return (TermWin.view_start - start);