From 90422fb932153b0fa414480be0ffb1ec641b83da Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Wed, 4 May 2016 02:30:18 -0400 Subject: apparently setting the scroll region shouldn't actually move the cursor --- src/parser.c | 1 + src/parser.l | 1 + src/screen.c | 2 -- 3 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/parser.c b/src/parser.c index 5124634..bff3be1 100644 --- a/src/parser.c +++ b/src/parser.c @@ -2521,6 +2521,7 @@ static void vt100_parser_handle_ris(VT100Screen *vt) vt100_screen_use_normal_buffer(vt); vt100_screen_set_scroll_region( vt, 0, vt->grid->max.row - 1, 0, vt->grid->max.col - 1); + vt100_screen_move_to(vt, 0, 0, 0); vt100_screen_clear_screen(vt); vt100_screen_save_cursor(vt); vt100_screen_reset_text_attributes(vt); diff --git a/src/parser.l b/src/parser.l index 513455b..28e63a8 100644 --- a/src/parser.l +++ b/src/parser.l @@ -317,6 +317,7 @@ static void vt100_parser_handle_ris(VT100Screen *vt) vt100_screen_use_normal_buffer(vt); vt100_screen_set_scroll_region( vt, 0, vt->grid->max.row - 1, 0, vt->grid->max.col - 1); + vt100_screen_move_to(vt, 0, 0, 0); vt100_screen_clear_screen(vt); vt100_screen_save_cursor(vt); vt100_screen_reset_text_attributes(vt); diff --git a/src/screen.c b/src/screen.c index c3c6af7..1dc8f75 100644 --- a/src/screen.c +++ b/src/screen.c @@ -628,8 +628,6 @@ void vt100_screen_set_scroll_region( vt->grid->scroll_bottom = bottom >= vt->grid->max.row ? vt->grid->max.row - 1 : bottom; - - vt100_screen_move_to(vt, vt->grid->scroll_top, 0, 0); } void vt100_screen_reset_text_attributes(VT100Screen *vt) -- cgit v1.2.3