From cc5dedc259c4157516915e109b77ac88b9943a55 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Wed, 10 Jun 2020 18:36:54 +0200 Subject: 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). --- terminal.c | 1 + 1 file changed, 1 insertion(+) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index f43c7320..74e46b7b 100644 --- a/terminal.c +++ b/terminal.c @@ -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); -- cgit v1.3