diff options
author | zeertzjq <zeertzjq@outlook.com> | 2023-05-22 18:22:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-22 18:22:47 +0800 |
commit | cb34d0ddd086141d6afcb9c48eae180abbeffecc (patch) | |
tree | 36781e597a21cabd22e808031d3a75e247f66efa /src/nvim/grid.c | |
parent | b11a8c1b5d3985479351b34f2078d490cbf59e90 (diff) | |
download | rneovim-cb34d0ddd086141d6afcb9c48eae180abbeffecc.tar.gz rneovim-cb34d0ddd086141d6afcb9c48eae180abbeffecc.tar.bz2 rneovim-cb34d0ddd086141d6afcb9c48eae180abbeffecc.zip |
fix(redraw): overwrite double-width char with virt_text properly (#23708)
Diffstat (limited to 'src/nvim/grid.c')
-rw-r--r-- | src/nvim/grid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/nvim/grid.c b/src/nvim/grid.c index 037606c38f..76dd2a073a 100644 --- a/src/nvim/grid.c +++ b/src/nvim/grid.c @@ -316,8 +316,7 @@ int grid_puts_len(ScreenGrid *grid, const char *text, int textlen, int row, int // When at the start of the text and overwriting the right half of a // two-cell character in the same grid, truncate that into a '>'. if (ptr == text && col > 0 && grid->chars[off][0] == 0) { - grid->chars[off - 1][0] = '>'; - grid->chars[off - 1][1] = 0; + schar_from_ascii(grid->chars[off - 1], '>'); } schar_copy(grid->chars[off], buf); |