diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-04-16 16:51:14 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-04-16 16:51:14 +0000 |
| commit | 89559d5466502176995720a33316714012a638d1 (patch) | |
| tree | 2aefe77cf082d80f892753360cd598b430615204 /sixel.c | |
| parent | misc: replace all explicit zero-initializers with empty initializers (diff) | |
grid: move 'cursor' state from terminal to grid
This way, the 'normal' and 'alt' grids have their own cursor state,
and we don't need to switch between them.
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -125,7 +125,7 @@ sixel_delete_in_range(struct terminal *term, int _start, int _end) void sixel_delete_at_cursor(struct terminal *term) { - sixel_delete_at_row(term, term->cursor.point.row); + sixel_delete_at_row(term, term->grid->cursor.point.row); } void @@ -142,8 +142,8 @@ sixel_unhook(struct terminal *term) .height = term->sixel.image.height, .rows = (term->sixel.image.height + term->cell_height - 1) / term->cell_height, .pos = (struct coord){ - term->cursor.point.col, - (term->grid->offset + term->cursor.point.row) & (term->grid->num_rows - 1)}, + term->grid->cursor.point.col, + (term->grid->offset + term->grid->cursor.point.row) & (term->grid->num_rows - 1)}, }; LOG_DBG("generating %dx%d pixman image", image.width, image.height); |
