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 --- terminal.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'terminal.c') diff --git a/terminal.c b/terminal.c index 84c9d459..554aa8b2 100644 --- a/terminal.c +++ b/terminal.c @@ -2401,8 +2401,7 @@ print_spacer(struct terminal *term, int col) void term_print(struct terminal *term, wchar_t wc, int width) { - if (unlikely(width <= 0)) - return; + assert(width > 0); print_linewrap(term); print_insert(term, width); -- cgit v1.3