0
0
mirror of https://github.com/vim/vim.git synced 2025-09-24 03:44:06 -04:00

patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode character

Problem:    CTRL-V U doesn't work to enter a Unicode character when
            modifyOtherKeys is effective. (Ken Takata)
Solution:   Add a flag to get_literal() for the shift key. (closes #7413)
This commit is contained in:
Bram Moolenaar
2020-12-03 19:54:42 +01:00
parent af0df47a76
commit 0684e36a7e
7 changed files with 35 additions and 30 deletions

View File

@@ -2580,11 +2580,10 @@ handle_mapping(
typebuf.tb_off] == RM_YES))
&& !*timedout)
{
keylen = check_termcode(max_mlen + 1,
NULL, 0, NULL);
keylen = check_termcode(max_mlen + 1, NULL, 0, NULL);
// If no termcode matched but 'pastetoggle' matched partially it's
// like an incomplete key sequence.
// If no termcode matched but 'pastetoggle' matched partially
// it's like an incomplete key sequence.
if (keylen == 0 && save_keylen == KEYLEN_PART_KEY)
keylen = KEYLEN_PART_KEY;
@@ -3680,7 +3679,7 @@ getcmdkeycmd(
// CTRL-V is followed by octal, hex or other characters, reverses
// what AppendToRedobuffLit() does.
no_reduce_keys = TRUE; // don't merge modifyOtherKeys
c1 = get_literal();
c1 = get_literal(TRUE);
no_reduce_keys = FALSE;
}