From 6fe2d24cef095bda797c2b33c1dadd4fac082945 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Fri, 16 Aug 2019 12:03:33 +0200 Subject: keymap: allow modifiers to multibyte chars, like MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- 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 9145813525..27052da9d8 100644 --- a/src/nvim/keymap.c +++ b/src/nvim/keymap.c @@ -604,7 +604,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp, // Anything accepted, like . // or are not special in strings as " is // the string delimiter. With a backslash it works: - if (end - bp > l && !(in_string && bp[1] == '"') && bp[2] == '>') { + if (end - bp > l && !(in_string && bp[1] == '"') && bp[l+1] == '>') { bp += l; } else if (end - bp > 2 && in_string && bp[1] == '\\' && bp[2] == '"' && bp[3] == '>') { -- cgit