From 8de63762778da7f0c4bb691b17a3024f48c5c181 Mon Sep 17 00:00:00 2001 From: Jocelyn Falempe Date: Tue, 7 Jul 2026 09:13:16 +0200 Subject: [PATCH] Fix: also clear the character value for multi-width character. When writing a character with a len of two or more, the cells are not cleared properly, leading to the previous character being visible. This is easily reproduced with tmux and CJK text. Signed-off-by: Jocelyn Falempe --- src/tsm/tsm-screen.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/tsm/tsm-screen.c b/src/tsm/tsm-screen.c index b6fab33..7c17b34 100644 --- a/src/tsm/tsm-screen.c +++ b/src/tsm/tsm-screen.c @@ -405,6 +405,7 @@ static void screen_write(struct tsm_screen *con, unsigned int x, for (i = 1; i < len && i + x < con->size_x; ++i) { line->cells[x + i].age = con->age_cnt; line->cells[x + i].width = 0; + line->cells[x + i].ch = 0; } }