1From cdd62a22e8cea368d187c2deedd29c8aecba5243 Mon Sep 17 00:00:00 2001 2From: Jeffy Chen <jeffy.chen@rock-chips.com> 3Date: Fri, 10 Jun 2022 17:15:12 +0800 4Subject: [PATCH 7/9] Skip drawing when cwidth is zero 5 6Signed-off-by: Jeffy Chen <jeffy.chen@rock-chips.com> 7--- 8 term.c | 3 +++ 9 1 file changed, 3 insertions(+) 10 11diff --git a/term.c b/term.c 12index 4b24ff6..8ff698e 100644 13--- a/term.c 14+++ b/term.c 15@@ -100,6 +100,9 @@ static int term_draw_cell(struct tsm_screen* screen, uint64_t id, 16 if (age && terminal->term->age && age <= terminal->term->age) 17 return 0; 18 19+ if (!cwidth) 20+ return 0; 21+ 22 if (terminal->background_valid) { 23 br = (terminal->background >> 16) & 0xFF; 24 bg = (terminal->background >> 8) & 0xFF; 25-- 262.20.1 27 28