From 1b13deff048fc10620b26ffe0220fae15549f9b4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Sun, 26 Dec 2021 16:08:42 +0100 Subject: [PATCH] =?UTF-8?q?term=5Ffill():=20make=20sure=20the=20filled=20c?= =?UTF-8?q?ells=20have=20their=20=E2=80=98clean=E2=80=99=20bit=20reset?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- terminal.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;