From 97221dd09b013c4ed67b11d6a7102232471c2114 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Tue, 9 Jun 2020 17:30:49 +0200 Subject: [PATCH] vt: utf8-print: check width == 0 first, when deciding whether to do combining --- vt.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vt.c b/vt.c index ed3a8eae..454ba11d 100644 --- a/vt.c +++ b/vt.c @@ -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;