term: replace term_put_char() with term_fill()

This commit is contained in:
Daniel Eklöf 2021-12-26 15:59:38 +01:00
parent 1b66c6a3ac
commit 189cfd717f
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
3 changed files with 22 additions and 23 deletions

11
csi.c
View file

@ -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;
}