mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04: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
|
|
@ -106,6 +106,14 @@ struct grid {
|
|||
int offset;
|
||||
int view;
|
||||
|
||||
/*
|
||||
* Note: the cursor (not the *saved* cursor) could most likely be
|
||||
* global state in the term struct.
|
||||
*
|
||||
* However, we have grid specific functions that does not have
|
||||
* access to the owning term struct, but does need access to the
|
||||
* cursor.
|
||||
*/
|
||||
struct cursor cursor;
|
||||
struct cursor saved_cursor;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue