mirror of
https://github.com/neovim/neovim.git
synced 2024-12-28 14:31:13 -07:00
fix(screen): truncate double-width character correctly
The `c = '>';` is useless here, because it is not used later. `u8c` should also need to be set to '>', and `u8cc` needs to be cleared.
This commit is contained in:
parent
0d7a97224f
commit
bc75544fac
@ -5933,6 +5933,8 @@ void grid_puts_len(ScreenGrid *grid, char_u *text, int textlen, int row, int col
|
||||
// Only 1 cell left, but character requires 2 cells:
|
||||
// display a '>' in the last column to avoid wrapping. */
|
||||
c = '>';
|
||||
u8c = '>';
|
||||
u8cc[0] = 0;
|
||||
mbyte_cells = 1;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user