From 2c0c4ce821b90dea9ebbcdab98c10865de1872fe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Fri, 16 Jun 2023 16:34:17 +0200 Subject: [PATCH] csi: CHA+HPA (cursor horizontal absolute): use term_cursor_col() --- csi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/csi.c b/csi.c index 7b318d0a..ef1a28f2 100644 --- a/csi.c +++ b/csi.c @@ -815,7 +815,7 @@ csi_dispatch(struct terminal *term, uint8_t final) case 'G': { /* Cursor horizontal absolute */ int col = min(vt_param_get(term, 0, 1), term->cols) - 1; - term_cursor_to(term, term->grid->cursor.point.row, col); + term_cursor_col(term, col); break; }