diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 23:41:55 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-02-22 23:41:55 +0000 |
| commit | 7fd380f253b3dd5768be32ac984294d7d1e13a41 (patch) | |
| tree | f3633ca615367320cf6b8c76732d6f74190bcf6c | |
| parent | render: sixel: don't render sixels on the 'other' grid (diff) | |
csi: delete all sixels on the 'alt' grid when switching back to 'normal'
| -rw-r--r-- | csi.c | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -1151,6 +1151,14 @@ csi_dispatch(struct terminal *term, uint8_t final) tll_free(term->alt.damage); tll_free(term->alt.scroll_damage); + /* Delete all sixel images on the alt screen */ + tll_foreach(term->sixel_images, it) { + if (it->item.grid == &term->alt) { + sixel_destroy(&it->item); + tll_remove(term->sixel_images, it); + } + } + term_damage_all(term); } break; |
