From a2b4bcbd4f6cb98e7e4ddf7e648fe2ee44505547 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Sun, 23 Feb 2020 00:40:30 +0100 Subject: sixel: track which grid image was created on --- sixel.c | 1 + terminal.h | 1 + 2 files changed, 2 insertions(+) diff --git a/sixel.c b/sixel.c index 24477e3e..34bdb585 100644 --- a/sixel.c +++ b/sixel.c @@ -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}, }; diff --git a/terminal.h b/terminal.h index 5e491d29..55311408 100644 --- a/terminal.h +++ b/terminal.h @@ -181,6 +181,7 @@ struct sixel { int width; int height; int rows; + const struct grid *grid; struct coord pos; }; -- cgit v1.3