mirror of
https://github.com/neovim/neovim.git
synced 2025-09-22 03:08:27 +00: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:
@@ -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:
|
// Only 1 cell left, but character requires 2 cells:
|
||||||
// display a '>' in the last column to avoid wrapping. */
|
// display a '>' in the last column to avoid wrapping. */
|
||||||
c = '>';
|
c = '>';
|
||||||
|
u8c = '>';
|
||||||
|
u8cc[0] = 0;
|
||||||
mbyte_cells = 1;
|
mbyte_cells = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user