… | |
… | |
1897 | * the top of the screen |
1897 | * the top of the screen |
1898 | */ |
1898 | */ |
1899 | void |
1899 | void |
1900 | rxvt_term::scr_move_to (int y, int len) NOTHROW |
1900 | rxvt_term::scr_move_to (int y, int len) NOTHROW |
1901 | { |
1901 | { |
1902 | scr_changeview ((top_row - nrow) * (len - y) / len + (nrow - 1)); |
1902 | // lerp (y, 0, len, top_row, nrow - 1) |
|
|
1903 | scr_changeview (top_row + (nrow - 1 - top_row) * y / len); |
1903 | } |
1904 | } |
1904 | |
1905 | |
1905 | /* ------------------------------------------------------------------------- */ |
1906 | /* ------------------------------------------------------------------------- */ |
1906 | /* |
1907 | /* |
1907 | * Page the screen up/down nlines |
1908 | * Page the screen up/down nlines |