vt: utf8-print: check width == 0 first, when deciding whether to do combining

This commit is contained in:
Daniel Eklöf 2020-06-09 17:30:49 +02:00
parent 9452aff020
commit 97221dd09b
No known key found for this signature in database
GPG key ID: 5BBD4992C116573F

2
vt.c
View file

@ -527,7 +527,7 @@ action_utf8_print(struct terminal *term, wchar_t wc)
*
* TODO: handle line-wrap when locating the base character.
*/
if (wc >= 0x0300 && width == 0 && term->grid->cursor.point.col > 0) {
if (width == 0 && wc >= 0x0300 && term->grid->cursor.point.col > 0) {
const struct row *row = term->grid->cur_row;
int base_col = term->grid->cursor.point.col;