From f4c334338242d60f52f0ef48f748bc1b4fce313a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 3 Jul 2019 15:59:28 +0200 Subject: [PATCH] csi: fix cursor positioning --- csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csi.c b/csi.c index a9de94b2..28c6baa1 100644 --- a/csi.c +++ b/csi.c @@ -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,