vt: no need to clear temporary utf8 buffer after printing it

This commit is contained in:
Daniel Eklöf 2019-07-01 21:14:07 +02:00
parent dfc9554e89
commit 0954ffdf22
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

1
vt.c
View file

@ -689,7 +689,6 @@ action(struct terminal *term, enum action action, uint8_t c)
//LOG_DBG("print: UTF8: %.*s", (int)term->vt.utf8.idx, term->vt.utf8.data);
memcpy(cell->c, term->vt.utf8.data, term->vt.utf8.idx);
cell->c[term->vt.utf8.idx] = '\0';
memset(&term->vt.utf8, 0, sizeof(term->vt.utf8));
} else {
//LOG_DBG("print: ASCII: %c", c);
cell->c[0] = c;