mtty_row_set(row, 0, rt->cols, build_attrs(rt->curattrs));
}
} else {
- mtty_row_roll(rt->curs_row, rt->scroll_bot, n);
+ mtty_row_roll(rt->curs_row, rt->scroll_bot, -n);
for (mtty_row_t *row = rt->curs_row; row < rt->curs_row + n; row++) {
mtty_row_set(row, 0, rt->cols, build_attrs(rt->curattrs));
}
mtty_row_set(row, 0, rt->cols, build_attrs(rt->curattrs));
}
} else {
- mtty_row_roll(rt->curs_row, rt->scroll_bot, -n);
+ mtty_row_roll(rt->curs_row, rt->scroll_bot, n);
for (mtty_row_t *row = rt->scroll_bot - n; row < rt->scroll_bot; row++) {
mtty_row_set(row, 0, rt->cols, build_attrs(rt->curattrs));
}