csi: fix cursor positioning

This commit is contained in:
Daniel Eklöf 2019-07-03 15:59:28 +02:00
parent 66033b9b1a
commit f4c3343382
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -503,7 +503,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
term->scroll_region.start = start - 1;
term->scroll_region.end = end;
term_cursor_to(term, (start - 1) * term->cols, 0);
term_cursor_to(term, start - 1, 0);
LOG_DBG("scroll region: %d-%d",
term->scroll_region.start,