mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-22 05:33:45 -04:00
term: replace term_put_char() with term_fill()
This commit is contained in:
parent
1b66c6a3ac
commit
189cfd717f
3 changed files with 22 additions and 23 deletions
11
csi.c
11
csi.c
|
|
@ -1941,15 +1941,8 @@ csi_dispatch(struct terminal *term, uint8_t final)
|
|||
sixel_overwrite_by_rectangle(
|
||||
term, top, left, bottom - top + 1, right - left + 1);
|
||||
|
||||
for (int r = top; r <= bottom; r++) {
|
||||
struct row *row = grid_row(term->grid, r);
|
||||
|
||||
if (unlikely(row->extra != NULL))
|
||||
grid_row_uri_range_erase(row, left, right);
|
||||
|
||||
for (int col = left; col <= right; col++)
|
||||
term_put_char(term, r, col, (wchar_t)c);
|
||||
}
|
||||
for (int r = top; r <= bottom; r++)
|
||||
term_fill(term, r, left, c, right - left + 1);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue