sixel: track which grid image was created on

This commit is contained in:
Daniel Eklöf 2020-02-23 00:40:30 +01:00
parent 86d640ef71
commit a2b4bcbd4f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
2 changed files with 2 additions and 0 deletions

View file

@ -81,6 +81,7 @@ sixel_unhook(struct terminal *term)
.width = term->sixel.image.width,
.height = term->sixel.image.height,
.rows = (term->sixel.image.height + term->cell_height - 1) / term->cell_height,
.grid = term->grid,
.pos = (struct coord){term->cursor.point.col, term->grid->offset + term->cursor.point.row},
};

View file

@ -181,6 +181,7 @@ struct sixel {
int width;
int height;
int rows;
const struct grid *grid;
struct coord pos;
};