diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-08-16 12:03:33 +0200 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-08-16 19:54:34 +0200 |
commit | 6fe2d24cef095bda797c2b33c1dadd4fac082945 (patch) | |
tree | a0cadd1f5e420a4c1655c0f04cb9fa3495f2a059 /src | |
parent | 1f5eac1115a44a0f4794cb7fb6f99142cbd39c60 (diff) | |
download | rneovim-6fe2d24cef095bda797c2b33c1dadd4fac082945.tar.gz rneovim-6fe2d24cef095bda797c2b33c1dadd4fac082945.tar.bz2 rneovim-6fe2d24cef095bda797c2b33c1dadd4fac082945.zip |
keymap: allow modifiers to multibyte chars, like <m-ä>
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/keymap.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 <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] == '>') { |