diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-12-03 19:54:42 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-12-03 19:54:42 +0100 |
commit | 0684e36a7ee0743f2889698fb8e0e14f7acae423 (patch) | |
tree | 7a1f23d46e7e1fa94329d7da561bc4a152b7750f /src/getchar.c | |
parent | af0df47a7671a39f2cde950587ba48800188bfb9 (diff) | |
download | vim-git-0684e36a7ee0743f2889698fb8e0e14f7acae423.tar.gz |
patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode characterv8.2.2084
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)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/getchar.c b/src/getchar.c index 42eed4a9e..3f2ad3c5f 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -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; } |