… | |
… | |
1811 | * the top of the screen |
1811 | * the top of the screen |
1812 | */ |
1812 | */ |
1813 | void |
1813 | void |
1814 | rxvt_term::scr_move_to (int y, int len) |
1814 | rxvt_term::scr_move_to (int y, int len) |
1815 | { |
1815 | { |
|
|
1816 | int p = len |
1816 | int p = (top_row - nrow) * (len - y) / len + (nrow - 1); |
1817 | ? (top_row - nrow) * (len - y) / len + (nrow - 1) |
|
|
1818 | : 0; |
1817 | |
1819 | |
1818 | scr_changeview (p); |
1820 | scr_changeview (p); |
1819 | } |
1821 | } |
1820 | |
1822 | |
1821 | /* ------------------------------------------------------------------------- */ |
1823 | /* ------------------------------------------------------------------------- */ |