keymap: allow modifiers to multibyte chars, like <m-ä>

This commit is contained in:
Björn Linse
2019-08-16 12:03:33 +02:00
parent 1f5eac1115
commit 6fe2d24cef
3 changed files with 9 additions and 1 deletions

View File

@@ -604,7 +604,7 @@ int find_special_key(const char_u **srcp, const size_t src_len, int *const modp,
// Anything accepted, like <C-?>.
// <C-"> or <M-"> are not special in strings as " is
// the string delimiter. With a backslash it works: <M-\">
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] == '>') {