mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-20 05:33:47 -04:00
sixel: purge images in unhook, rather than in init
This fixes an issue where the cursor was seen blinking in animated GIFs.
This commit is contained in:
parent
80361ca04e
commit
270b7cc6f4
1 changed files with 2 additions and 2 deletions
4
sixel.c
4
sixel.c
|
|
@ -39,8 +39,6 @@ sixel_init(struct terminal *term)
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|
||||||
sixel_purge_at_cursor(term);
|
|
||||||
|
|
||||||
/* TODO: default palette */
|
/* TODO: default palette */
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -76,6 +74,8 @@ sixel_unhook(struct terminal *term)
|
||||||
free(term->sixel.palette);
|
free(term->sixel.palette);
|
||||||
term->sixel.palette = NULL;
|
term->sixel.palette = NULL;
|
||||||
|
|
||||||
|
sixel_purge_at_cursor(term);
|
||||||
|
|
||||||
struct sixel image = {
|
struct sixel image = {
|
||||||
.data = term->sixel.image.data,
|
.data = term->sixel.image.data,
|
||||||
.width = term->sixel.image.width,
|
.width = term->sixel.image.width,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue