aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-26 15:08:42 +0000
committerDaniel Eklöf <daniel@ekloef.se>2024-03-07 15:24:33 +0000
commit1b13deff048fc10620b26ffe0220fae15549f9b4 (patch)
tree7faa26f6fa2cdaf48cea43fc8557deb01d185dc2
parentvt: update DECALN to use term_fill() (diff)
term_fill(): make sure the filled cells have their ‘clean’ bit reset
-rw-r--r--terminal.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/terminal.c b/terminal.c
index d826282b..acde951b 100644
--- a/terminal.c
+++ b/terminal.c
@@ -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;