From: Pierre Habouzit Date: Fri, 10 Aug 2007 15:30:10 +0000 (+0200) Subject: small fix X-Git-Url: http://git.madism.org/?a=commitdiff_plain;h=5c99ba24e74e451d0c256b46134d38ee17054565;p=apps%2Fmadtty.git small fix Signed-off-by: Pierre Habouzit --- diff --git a/madtty/madtty.c b/madtty/madtty.c index 289172e..837b2bd 100644 --- a/madtty/madtty.c +++ b/madtty/madtty.c @@ -430,7 +430,7 @@ static void interpret_csi_IL(madtty_t *rt, int param[], int pcount) 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)); } @@ -448,7 +448,7 @@ static void interpret_csi_DL(madtty_t *rt, int param[], int pcount) 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)); }