mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-06 04:06:06 -05:00
sixel: verify-list-order: add an ‘index’ variable
This will make it easier when debugging assertions in this function.
This commit is contained in:
parent
96a20c9df7
commit
5a2cc9c9ae
1 changed files with 4 additions and 0 deletions
4
sixel.c
4
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue