diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:04:12 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:04:12 +0000 |
| commit | 6f2cffd8c0949c2dfa1499c5d0c2594eb645ac26 (patch) | |
| tree | 15fde45c9f1a9480336a07977103edc326a4d0f0 /terminal.c | |
| parent | vt: ignore 0x7f (DEL) in ground state (diff) | |
vt: never call term_print() with a width <= 0
Diffstat (limited to 'terminal.c')
| -rw-r--r-- | terminal.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |
