aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:55:10 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-02-22 20:55:10 +0000
commit270b7cc6f4a16e67fb65cccb43bb16a3e47c64ea (patch)
tree13e64b7605112a5b5b468d3368c89c02b399d3c1
parentsixel: purge images at current cursor row (diff)
sixel: purge images in unhook, rather than in init
This fixes an issue where the cursor was seen blinking in animated GIFs.
-rw-r--r--sixel.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sixel.c b/sixel.c
index db87844e..19dd6069 100644
--- a/sixel.c
+++ b/sixel.c
@@ -39,8 +39,6 @@ sixel_init(struct terminal *term)
count = 0;
- sixel_purge_at_cursor(term);
-
/* TODO: default palette */
}
@@ -76,6 +74,8 @@ sixel_unhook(struct terminal *term)
free(term->sixel.palette);
term->sixel.palette = NULL;
+ sixel_purge_at_cursor(term);
+
struct sixel image = {
.data = term->sixel.image.data,
.width = term->sixel.image.width,