mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -05:00
csi: never call term_print() with width <= 0
This commit is contained in:
parent
6f2cffd8c0
commit
47d6dd0eee
1 changed files with 4 additions and 2 deletions
6
csi.c
6
csi.c
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue