Merge branch 'reflow-performance'

Part of #504
This commit is contained in:
Daniel Eklöf 2021-05-16 18:48:19 +02:00
commit 3405a9c81c
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F
9 changed files with 175 additions and 101 deletions

2
vt.c
View file

@ -569,7 +569,7 @@ action_utf8_print(struct terminal *term, wchar_t wc)
if (!term->grid->cursor.lcf)
base_col--;
while (row->cells[base_col].wc == CELL_MULT_COL_SPACER && base_col > 0)
while (row->cells[base_col].wc >= CELL_SPACER && base_col > 0)
base_col--;
xassert(base_col >= 0 && base_col < term->cols);