… | |
… | |
638 | |
638 | |
639 | if (count > 0 |
639 | if (count > 0 |
640 | && row1 == 0 |
640 | && row1 == 0 |
641 | && (current_screen == PRIMARY || option (Opt_secondaryScroll))) |
641 | && (current_screen == PRIMARY || option (Opt_secondaryScroll))) |
642 | { |
642 | { |
643 | min_it (count, row2 - total_rows); |
643 | min_it (count, row2 + total_rows); |
644 | |
644 | |
645 | top_row = max (top_row - count, -saveLines); |
645 | top_row = max (top_row - count, -saveLines); |
646 | |
646 | |
647 | // scroll everything up 'count' lines |
647 | // scroll everything up 'count' lines |
648 | term_start = (term_start + count) % total_rows; |
648 | term_start = (term_start + count) % total_rows; |