From 6f2cffd8c0949c2dfa1499c5d0c2594eb645ac26 Mon Sep 17 00:00:00 2001 From: Daniel Eklöf Date: Thu, 16 Jul 2020 08:04:12 +0200 Subject: vt: never call term_print() with a width <= 0 --- vt.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'vt.c') diff --git a/vt.c b/vt.c index 148f2aae..f25f26be 100644 --- a/vt.c +++ b/vt.c @@ -663,7 +663,8 @@ action_utf8_print(struct terminal *term, wchar_t wc) } } - term_print(term, wc, width); + if (width > 0) + term_print(term, wc, width); } static void -- cgit v1.3