… | |
… | |
715 | |
715 | |
716 | // finally move the view window, if desired |
716 | // finally move the view window, if desired |
717 | if (option (Opt_scrollWithBuffer) |
717 | if (option (Opt_scrollWithBuffer) |
718 | && view_start != 0 |
718 | && view_start != 0 |
719 | && view_start != -saveLines) |
719 | && view_start != -saveLines) |
720 | scr_page (UP, count); |
720 | scr_page (count); |
721 | |
721 | |
722 | if (SHOULD_INVOKE (HOOK_SCROLL_BACK)) |
722 | if (SHOULD_INVOKE (HOOK_SCROLL_BACK)) |
723 | HOOK_INVOKE ((this, HOOK_SCROLL_BACK, DT_INT, count, DT_INT, top_row, DT_END)); |
723 | HOOK_INVOKE ((this, HOOK_SCROLL_BACK, DT_INT, count, DT_INT, top_row, DT_END)); |
724 | } |
724 | } |
725 | else |
725 | else |
… | |
… | |
1910 | /* |
1910 | /* |
1911 | * Page the screen up/down nlines |
1911 | * Page the screen up/down nlines |
1912 | * direction should be UP or DN |
1912 | * direction should be UP or DN |
1913 | */ |
1913 | */ |
1914 | bool |
1914 | bool |
1915 | rxvt_term::scr_page (enum page_dirn direction, int nlines) NOTHROW |
1915 | rxvt_term::scr_page (int nlines) NOTHROW |
1916 | { |
1916 | { |
1917 | int new_view_start = |
|
|
1918 | direction == UP ? view_start - nlines |
|
|
1919 | : view_start + nlines; |
|
|
1920 | |
|
|
1921 | return scr_changeview (new_view_start); |
1917 | return scr_changeview (view_start - nlines); |
1922 | } |
1918 | } |
1923 | |
1919 | |
1924 | bool |
1920 | bool |
1925 | rxvt_term::scr_changeview (int new_view_start) NOTHROW |
1921 | rxvt_term::scr_changeview (int new_view_start) NOTHROW |
1926 | { |
1922 | { |