csi: CHA+HPA (cursor horizontal absolute): use term_cursor_col()

This commit is contained in:
Daniel Eklöf 2023-06-16 16:34:17 +02:00
parent 24f12c7b5e
commit 2c0c4ce821
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
csi.c
View file

@ -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;
}