From 5a2cc9c9ae744e8b5026e02dfc4c568c4e7ad95c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 4 Oct 2020 19:10:54 +0200 Subject: [PATCH] =?UTF-8?q?sixel:=20verify-list-order:=20add=20an=20?= =?UTF-8?q?=E2=80=98index=E2=80=99=20variable?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This will make it easier when debugging assertions in this function. --- sixel.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/sixel.c b/sixel.c index 8c95e70b..07b16031 100644 --- a/sixel.c +++ b/sixel.c @@ -117,6 +117,9 @@ verify_list_order(const struct terminal *term) int prev_col = -1; int prev_col_count = 0; + /* To aid debugging */ + size_t idx = 0; + tll_foreach(term->grid->sixel_images, it) { int row = rebase_row(term, it->item.pos.row + it->item.rows - 1); int col = it->item.pos.col; @@ -141,6 +144,7 @@ verify_list_order(const struct terminal *term) prev_row = row; prev_col = col; prev_col_count = col_count; + idx++; } #endif return true;