mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
Merge branch 'optimize-erase-cell-range'
This commit is contained in:
commit
ee2b0cb21f
1 changed files with 6 additions and 0 deletions
|
|
@ -1537,6 +1537,12 @@ erase_cell_range(struct terminal *term, struct row *row, int start, int end)
|
|||
|
||||
/* Split up, or remove, URI ranges affected by the erase */
|
||||
tll_foreach(row->extra->uri_ranges, it) {
|
||||
if (it->item.start > end) {
|
||||
/* This range, and all subsequent ranges, start *after*
|
||||
* the erase range */
|
||||
break;
|
||||
}
|
||||
|
||||
if (it->item.start < start && it->item.end >= start) {
|
||||
/*
|
||||
* URI crosses the erase *start* point.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue