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:
parent
42a135456a
commit
e59a5a4e95
|
@ -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>.
|
||||
----------------------------------------------------------------------
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue