vt: simplify CLEAR action; don't memset() more than necessary

This commit is contained in:
Daniel Eklöf 2019-07-02 21:44:58 +02:00
parent dd4647e9ff
commit ed68eafdf0
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

6
vt.c
View file

@ -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: {