mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-01 01:40:13 -05:00
grid: track both linear and row,col cursor
This commit is contained in:
parent
963b266cce
commit
50c43be0d9
6 changed files with 95 additions and 27 deletions
2
main.c
2
main.c
|
|
@ -97,7 +97,7 @@ grid_render(struct context *c)
|
|||
|
||||
cell->dirty = false;
|
||||
|
||||
bool has_cursor = c->term.grid.cursor == cell_idx;
|
||||
bool has_cursor = c->term.grid.linear_cursor == cell_idx;
|
||||
|
||||
int y_ofs = row * c->term.grid.cell_height + c->fextents.ascent;
|
||||
int x_ofs = col * c->term.grid.cell_width;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue