mirror of
https://github.com/neovim/neovim.git
synced 2025-09-30 23:18:33 +00:00
refactor: replace char_u with char
Work on https://github.com/neovim/neovim/issues/459
This commit is contained in:
@@ -240,7 +240,7 @@ void grid_puts_len(ScreenGrid *grid, char *text, int textlen, int row, int col,
|
||||
c = (unsigned char)(*ptr);
|
||||
// check if this is the first byte of a multibyte
|
||||
mbyte_blen = len > 0
|
||||
? utfc_ptr2len_len((char_u *)ptr, (int)((text + len) - ptr))
|
||||
? utfc_ptr2len_len(ptr, (int)((text + len) - ptr))
|
||||
: utfc_ptr2len(ptr);
|
||||
u8c = len >= 0
|
||||
? utfc_ptr2char_len((char_u *)ptr, u8cc, (int)((text + len) - ptr))
|
||||
|
Reference in New Issue
Block a user