diff options
author | Michael Jennings <mej@kainx.org> | 2009-10-25 20:33:35 +0000 |
---|---|---|
committer | Michael Jennings <mej@kainx.org> | 2009-10-25 20:33:35 +0000 |
commit | e59a5a4e95aca8b45efb42a521ee513b318fc5a9 (patch) | |
tree | 6f4652df7267e6dbe89597dbd358f161fb55e768 | |
parent | 42a135456a75ba914291984b0c83942ac6664f75 (diff) | |
download | eterm-e59a5a4e95aca8b45efb42a521ee513b318fc5a9.tar.gz |
Sun Oct 25 12:39:34 2009 Michael Jennings (mej)
Fix for scrolling limitations from Cliff Miller <cbm@whatexit.org>.
----------------------------------------------------------------------
SVN revision: 43282
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | src/screen.c | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -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>. +---------------------------------------------------------------------- diff --git a/src/screen.c b/src/screen.c index 1aac33c..6410511 100644 --- a/src/screen.c +++ b/src/screen.c @@ -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); |