diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:06:37 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:06:37 +0000 |
| commit | 47d6dd0eeef6b3153a3989c76044f2cb091b12d2 (patch) | |
| tree | fd32ff673b3ad95f35978abe499b5c499996b1e1 | |
| parent | vt: never call term_print() with a width <= 0 (diff) | |
csi: never call term_print() with width <= 0
| -rw-r--r-- | csi.c | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -338,8 +338,10 @@ csi_dispatch(struct terminal *term, uint8_t final) LOG_DBG("REP: '%C' %d times", term->vt.last_printed, count); const int width = wcwidth(term->vt.last_printed); - for (int i = 0; i < count; i++) - term_print(term, term->vt.last_printed, width); + if (width > 0) { + for (int i = 0; i < count; i++) + term_print(term, term->vt.last_printed, width); + } } break; |
