mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-28 01:40:17 -05:00
term: keep cursor state in grid, for now, but document that it _could_ be moved
This commit is contained in:
parent
a63e7983dd
commit
2a012f86d8
2 changed files with 8 additions and 2 deletions
2
csi.c
2
csi.c
|
|
@ -507,7 +507,6 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
|
|||
term->grid = &term->alt;
|
||||
|
||||
/* Cursor retains its position from the normal grid */
|
||||
/* TODO: don’t need separate cursors */
|
||||
term_cursor_to(
|
||||
term,
|
||||
min(term->normal.cursor.point.row, term->rows - 1),
|
||||
|
|
@ -526,7 +525,6 @@ decset_decrst(struct terminal *term, unsigned param, bool enable)
|
|||
term->grid = &term->normal;
|
||||
|
||||
/* Cursor retains its position from the alt grid */
|
||||
/* TODO: don’t need separate cursors */
|
||||
term_cursor_to(
|
||||
term, min(term->alt.cursor.point.row, term->rows - 1),
|
||||
min(term->alt.cursor.point.col, term->cols - 1));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue