mirror of
https://github.com/neovim/neovim.git
synced 2025-09-20 10:18:18 +00:00
Refactor: Remove occurences of mb_char2bytes
This commit is contained in:
@@ -1398,7 +1398,7 @@ void ins_bytes_len(char_u *p, size_t len)
|
||||
void ins_char(int c)
|
||||
{
|
||||
char_u buf[MB_MAXBYTES + 1];
|
||||
size_t n = (size_t)(*mb_char2bytes)(c, buf);
|
||||
size_t n = (size_t)utf_char2bytes(c, buf);
|
||||
|
||||
// When "c" is 0x100, 0x200, etc. we don't want to insert a NUL byte.
|
||||
// Happens for CTRL-Vu9900.
|
||||
|
Reference in New Issue
Block a user