mirror of
https://codeberg.org/dnkl/foot.git
synced 2026-02-05 04:06:08 -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:
|
||||
memset(&term->vt.params, 0, sizeof(term->vt.params));
|
||||
memset(&term->vt.intermediates, 0, sizeof(term->vt.intermediates));
|
||||
memset(&term->vt.osc, 0, sizeof(term->vt.osc));
|
||||
memset(&term->vt.utf8, 0, sizeof(term->vt.utf8));
|
||||
term->vt.intermediates.idx = 0;
|
||||
term->vt.osc.idx = 0;
|
||||
term->vt.utf8.idx = 0;
|
||||
break;
|
||||
|
||||
case ACTION_PRINT: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue