mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-26 01:40:12 -05:00
vt: simplify CLEAR action; don't memset() more than necessary
This commit is contained in:
parent
dd4647e9ff
commit
ed68eafdf0
1 changed files with 3 additions and 3 deletions
6
vt.c
6
vt.c
|
|
@ -664,9 +664,9 @@ action(struct terminal *term, enum action action, uint8_t c)
|
||||||
|
|
||||||
case ACTION_CLEAR:
|
case ACTION_CLEAR:
|
||||||
memset(&term->vt.params, 0, sizeof(term->vt.params));
|
memset(&term->vt.params, 0, sizeof(term->vt.params));
|
||||||
memset(&term->vt.intermediates, 0, sizeof(term->vt.intermediates));
|
term->vt.intermediates.idx = 0;
|
||||||
memset(&term->vt.osc, 0, sizeof(term->vt.osc));
|
term->vt.osc.idx = 0;
|
||||||
memset(&term->vt.utf8, 0, sizeof(term->vt.utf8));
|
term->vt.utf8.idx = 0;
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case ACTION_PRINT: {
|
case ACTION_PRINT: {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue