From f834ae8addef13cd0faecd66b519aa1267094026 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 4 Oct 2020 19:17:33 +0200 Subject: [PATCH] sixel: unhook: look total number of sixels This helps debug sixel overwrites, as it makes it more visible when there are sixels that _should_ have been removed. --- sixel.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sixel.c b/sixel.c index e584d677..2696f211 100644 --- a/sixel.c +++ b/sixel.c @@ -658,6 +658,9 @@ sixel_unhook(struct terminal *term) term->sixel.max_col = 0; term->sixel.pos = (struct coord){0, 0}; + LOG_DBG("you now have %zu sixels in current grid", + tll_length(term->grid->sixel_images)); + render_refresh(term); }