From d54156ed08b84e6c7f22334a4f3a4d4f84798604 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Tue, 9 Jan 2024 19:16:44 +0800 Subject: fix(extmarks): blending space shouldn't overwrite wide char (#26960) --- src/nvim/drawline.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim') diff --git a/src/nvim/drawline.c b/src/nvim/drawline.c index 6480c10c6b..a4d98f09f4 100644 --- a/src/nvim/drawline.c +++ b/src/nvim/drawline.c @@ -337,7 +337,7 @@ static int draw_virt_text_item(buf_T *buf, int col, VirtText vt, HlMode hl_mode, schar_T dummy[2] = { schar_from_ascii(' '), schar_from_ascii(' ') }; int maxcells = max_col - col; // When overwriting the right half of a double-width char, clear the left half. - if (linebuf_char[col] == 0) { + if (!through && linebuf_char[col] == 0) { assert(col > 0); linebuf_char[col - 1] = schar_from_ascii(' '); // Clear the right half as well for the assertion in line_putchar(). -- cgit