diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2017-04-15 11:19:40 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-15 11:19:40 +0200 |
commit | 12fc1defd6a1b13d1f801173e0b6a1cef28527ae (patch) | |
tree | 5dccff612445ce406c102eba44f1ad4da16049d5 /src | |
parent | 58d2ce9bdbb6feab7176f451ca0248c78606aa2e (diff) | |
download | rneovim-12fc1defd6a1b13d1f801173e0b6a1cef28527ae.tar.gz rneovim-12fc1defd6a1b13d1f801173e0b6a1cef28527ae.tar.bz2 rneovim-12fc1defd6a1b13d1f801173e0b6a1cef28527ae.zip |
ops: fix i<c-r> with multi-byte text (#6524)
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/getchar.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/getchar.c b/src/nvim/getchar.c index b83681ad01..3b248c4bc6 100644 --- a/src/nvim/getchar.c +++ b/src/nvim/getchar.c @@ -302,13 +302,13 @@ static void add_num_buff(buffheader_T *buf, long n) */ static void add_char_buff(buffheader_T *buf, int c) { - char bytes[MB_MAXBYTES + 1]; + uint8_t bytes[MB_MAXBYTES + 1]; int len; if (IS_SPECIAL(c)) { len = 1; } else { - len = (*mb_char2bytes)(c, (char_u *)bytes); + len = mb_char2bytes(c, bytes); } for (int i = 0; i < len; i++) { |