summaryrefslogtreecommitdiffstats
path: root/src/parser.l
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2016-05-04 02:30:18 -0400
committerJesse Luehrs <doy@tozt.net>2016-05-04 04:25:19 -0400
commit90422fb932153b0fa414480be0ffb1ec641b83da (patch)
tree0f69d89487fa8cc73f7297e137d28e00e51ad522 /src/parser.l
parent7ec1440e6f4c0f9aa90c0bbe570fcc829851f0c7 (diff)
downloadlibvt100-90422fb932153b0fa414480be0ffb1ec641b83da.tar.gz
libvt100-90422fb932153b0fa414480be0ffb1ec641b83da.zip
apparently setting the scroll region shouldn't actually move the cursor
Diffstat (limited to 'src/parser.l')
-rw-r--r--src/parser.l1
1 files changed, 1 insertions, 0 deletions
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);