aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sixel.c4
1 files changed, 4 insertions, 0 deletions
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;