aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vt.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vt.c b/vt.c
index 8f1db921..dd0f78ae 100644
--- a/vt.c
+++ b/vt.c
@@ -714,6 +714,7 @@ 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';
+ term->vt.utf8.idx = 0;
} else {
//LOG_DBG("print: ASCII: %c", c);
cell->c[0] = c;