mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-03-30 11:10:23 -04: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);
|
LOG_DBG("REP: '%C' %d times", term->vt.last_printed, count);
|
||||||
|
|
||||||
const int width = wcwidth(term->vt.last_printed);
|
const int width = wcwidth(term->vt.last_printed);
|
||||||
for (int i = 0; i < count; i++)
|
if (width > 0) {
|
||||||
term_print(term, term->vt.last_printed, width);
|
for (int i = 0; i < count; i++)
|
||||||
|
term_print(term, term->vt.last_printed, width);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue