forked from aniani/vim
patch 8.1.1857: cannot use modifier with multi-byte character
Problem: Cannot use modifier with multi-byte character.
Solution: Allow using a multi-byte character, although it doesn't work
everywhere.
This commit is contained in:
@@ -2819,10 +2819,10 @@ find_special_key(
|
||||
l = mb_ptr2len(bp + 1);
|
||||
else
|
||||
l = 1;
|
||||
/* Anything accepted, like <C-?>.
|
||||
* <C-"> or <M-"> are not special in strings as " is
|
||||
* the string delimiter. With a backslash it works: <M-\"> */
|
||||
if (!(in_string && bp[1] == '"') && bp[2] == '>')
|
||||
// Anything accepted, like <C-?>.
|
||||
// <C-"> or <M-"> are not special in strings as " is
|
||||
// the string delimiter. With a backslash it works: <M-\">
|
||||
if (!(in_string && bp[1] == '"') && bp[l + 1] == '>')
|
||||
bp += l;
|
||||
else if (in_string && bp[1] == '\\' && bp[2] == '"'
|
||||
&& bp[3] == '>')
|
||||
|
||||
Reference in New Issue
Block a user