mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
csi: CHA+HPA (cursor horizontal absolute): use term_cursor_col()
This commit is contained in:
parent
24f12c7b5e
commit
2c0c4ce821
1 changed files with 1 additions and 1 deletions
2
csi.c
2
csi.c
|
|
@ -815,7 +815,7 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
||||||
case 'G': {
|
case 'G': {
|
||||||
/* Cursor horizontal absolute */
|
/* Cursor horizontal absolute */
|
||||||
int col = min(vt_param_get(term, 0, 1), term->cols) - 1;
|
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;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue