From 0039ba04b0c907a6d23a0c07ed272f38c58c9739 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 12:40:46 +0100 Subject: refactor(multibyte): eliminate mb_ptr2len alias for utfc_ptr2len --- src/nvim/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/keymap.c') diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index fc2f9b04f5..b17ce5d668 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -689,7 +689,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp, // Special case for a double-quoted string off = l = 2; } else { - l = mb_ptr2len(last_dash + 1); + l = utfc_ptr2len(last_dash + 1); } if (modifiers != 0 && last_dash[l + 1] == '>') { key = PTR2CHAR(last_dash + off); -- cgit From 71a4d275dc3fa71c656c0d2423f60904822aa223 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sun, 14 Nov 2021 12:48:42 +0100 Subject: refactor(multibyte): eliminate mb_char2len alias for utf_char2len --- src/nvim/keymap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/nvim/keymap.c') diff --git a/src/nvim/keymap.c b/src/nvim/keymap.c index b17ce5d668..81e5cf6ed5 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -477,7 +477,7 @@ char_u *get_special_key_name(int c, int modifiers) * extract modifiers. */ if (c > 0 - && (*mb_char2len)(c) == 1) { + && utf_char2len(c) == 1) { if (table_idx < 0 && (!vim_isprintc(c) || (c & 0x7f) == ' ') && (c & 0x80)) { -- cgit