diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 17:40:41 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-24 17:42:46 +0000 |
| commit | 4c6f2ea340d1432e50973961579ebd0eb4ca2c0f (patch) | |
| tree | a6ee4ff5b3831b610082b496ec84ce86e3fccae1 /sixel.c | |
| parent | sixel: ensure 'start' row is not outside the grid row range (diff) | |
term: term_erase(): call sixel_delete_*()
This ensures sixel images are removed, regardless of _how_ the screen
was erased.
Diffstat (limited to 'sixel.c')
| -rw-r--r-- | sixel.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -156,8 +156,6 @@ sixel_unhook(struct terminal *term) term->sixel.image.data, term->sixel.image.width * sizeof(uint32_t)); - tll_push_back(term->sixel_images, image); - term->sixel.image.data = NULL; term->sixel.image.width = 0; term->sixel.image.height = 0; @@ -168,6 +166,8 @@ sixel_unhook(struct terminal *term) term_linefeed(term); term_formfeed(term); render_refresh(term); + + tll_push_back(term->sixel_images, image); } static unsigned |
