aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2024-01-09 19:16:44 +0800
committerGitHub <noreply@github.com>2024-01-09 19:16:44 +0800
commitd54156ed08b84e6c7f22334a4f3a4d4f84798604 (patch)
treeef9eb02cfb299095a50f8b39d3c17eb100bfe1b5 /src
parentb2c92eebc01c15789b37c6f62bd71a6ccfd0155f (diff)
downloadrneovim-d54156ed08b84e6c7f22334a4f3a4d4f84798604.tar.gz
rneovim-d54156ed08b84e6c7f22334a4f3a4d4f84798604.tar.bz2
rneovim-d54156ed08b84e6c7f22334a4f3a4d4f84798604.zip
fix(extmarks): blending space shouldn't overwrite wide char (#26960)
Diffstat (limited to 'src')
-rw-r--r--src/nvim/drawline.c2
1 files changed, 1 insertions, 1 deletions
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().