From c8fd33d18b49c3246f33782dd7b4a1c87504dd5f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Fri, 16 Aug 2019 20:33:05 +0200 Subject: 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. --- src/misc2.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/misc2.c') diff --git a/src/misc2.c b/src/misc2.c index 463b37b79..db3687d71 100644 --- a/src/misc2.c +++ b/src/misc2.c @@ -2819,10 +2819,10 @@ find_special_key( l = mb_ptr2len(bp + 1); else l = 1; - /* Anything accepted, like . - * or are not special in strings as " is - * the string delimiter. With a backslash it works: */ - if (!(in_string && bp[1] == '"') && bp[2] == '>') + // Anything accepted, like . + // or are not special in strings as " is + // the string delimiter. With a backslash it works: + if (!(in_string && bp[1] == '"') && bp[l + 1] == '>') bp += l; else if (in_string && bp[1] == '\\' && bp[2] == '"' && bp[3] == '>') -- cgit v1.2.1