aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2020-05-01 09:50:38 +0000
committerDaniel Eklöf <daniel@ekloef.se>2020-05-01 09:50:38 +0000
commit67614df9f90021a091128a37caac16cf130a03a1 (patch)
tree5fcfd50a33cb15df9fdc0909b0c1f234e73c421e
parentgrid: add per-cell combining characters (diff)
term: print: reset combining characters for this cell
This is the *only* place combining characters are reset. In particular, we do *not* reset them in a normal cell erase. This is a performance design decision - clearing the combining characters in erase is way too slow. This way, we clear it only when we *have* to. Anything looking at the combining characters must first ensure the base character is not 0.
-rw-r--r--terminal.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/terminal.c b/terminal.c
index 1f1ef782..8e859a1e 100644
--- a/terminal.c
+++ b/terminal.c
@@ -2295,6 +2295,7 @@ term_print(struct terminal *term, wchar_t wc, int width)
cell->wc = term->vt.last_printed = wc;
cell->attrs = term->vt.attrs;
+ row->comb_chars[term->grid->cursor.point.col].count = 0;
row->dirty = true;
cell->attrs.clean = 0;