diff options
| author | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:53:20 +0000 |
|---|---|---|
| committer | Daniel Eklöf <daniel@ekloef.se> | 2020-07-16 06:53:20 +0000 |
| commit | de75a2035e63b744b41e7297af71fc0088b33f93 (patch) | |
| tree | 9025d222575b778fbefaec2ce684dac2f9a9fb2b /csi.c | |
| parent | changelog: use bemenu instead of fuzzel in pipe-visible example (diff) | |
| parent | term: line-wrap: don't move cursor outside the grid (diff) | |
Merge branch 'master' into pipe-grid-to-external-tool
Diffstat (limited to 'csi.c')
| -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; |
