diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2019-06-17 19:15:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2019-06-17 19:15:20 +0000 |
| commit | 50c43be0d9729c20b1daa7a1303ca247aed2bb9e (patch) | |
| tree | e46ec16f795b5647cd09e86725dacb559ac538ea /main.c | |
| parent | vt: handle cursor-at-right-edge (diff) | |
grid: track both linear and row,col cursor
Diffstat (limited to 'main.c')
| -rw-r--r-- | main.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |
