mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-15 05:33:58 -04:00
sixel: do not reset palette after each image
A client can re-use the palette between images. Resetting the palette breaks this. Now we initialize the palette on demand, and resets it when the palette size is changed (by the client).
This commit is contained in:
parent
8524e32bd5
commit
cc5dedc259
4 changed files with 23 additions and 5 deletions
|
|
@ -1168,6 +1168,7 @@ term_destroy(struct terminal *term)
|
|||
tll_foreach(term->alt.sixel_images, it)
|
||||
sixel_destroy(&it->item);
|
||||
tll_free(term->alt.sixel_images);
|
||||
sixel_fini(term);
|
||||
|
||||
free(term->foot_exe);
|
||||
free(term->cwd);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue