mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
term_fill(): make sure the filled cells have their ‘clean’ bit reset
This commit is contained in:
parent
74a1fa9e00
commit
1b13deff04
1 changed files with 3 additions and 1 deletions
|
|
@ -3519,10 +3519,12 @@ term_fill(struct terminal *term, int r, int c, char data, size_t count,
|
|||
|
||||
xassert(c + count <= term->cols);
|
||||
|
||||
const struct attributes attrs = use_sgr_attrs
|
||||
struct attributes attrs = use_sgr_attrs
|
||||
? term->vt.attrs
|
||||
: (struct attributes){0};
|
||||
|
||||
attrs.clean = 0;
|
||||
|
||||
const struct cell *last = &row->cells[c + count];
|
||||
for (struct cell *cell = &row->cells[c]; cell < last; cell++) {
|
||||
cell->wc = data;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue