aboutsummaryrefslogtreecommitdiff
path: root/csi.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-06-16 14:34:17 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-06-20 12:55:32 +0000
commit2c0c4ce821b90dea9ebbcdab98c10865de1872fe (patch)
treecb3e49d374f9137b9f41bbf47da974521f40256d /csi.c
parentterm: add term_cursor_col() (diff)
csi: CHA+HPA (cursor horizontal absolute): use term_cursor_col()
Diffstat (limited to 'csi.c')
-rw-r--r--csi.c2
1 files changed, 1 insertions, 1 deletions
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;
}