mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-26 07:57:59 -04:00
Merge branch 'sort-osc8-ranges'
This commit is contained in:
commit
e37a6db19c
1 changed files with 7 additions and 1 deletions
8
grid.c
8
grid.c
|
|
@ -774,5 +774,11 @@ void
|
||||||
grid_row_add_uri_range(struct row *row, struct row_uri_range range)
|
grid_row_add_uri_range(struct row *row, struct row_uri_range range)
|
||||||
{
|
{
|
||||||
ensure_row_has_extra_data(row);
|
ensure_row_has_extra_data(row);
|
||||||
tll_push_back(row->extra->uri_ranges, range);
|
tll_rforeach(row->extra->uri_ranges, it) {
|
||||||
|
if (it->item.end < range.start) {
|
||||||
|
tll_insert_after(row->extra->uri_ranges, it, range);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
tll_push_front(row->extra->uri_ranges, range);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue