Mercurial > vim
diff src/getchar.c @ 23076:5fbac68bda23 v8.2.2084
patch 8.2.2084: CTRL-V U doesn't work to enter a Unicode character
Commit: https://github.com/vim/vim/commit/0684e36a7ee0743f2889698fb8e0e14f7acae423
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 3 19:54:42 2020 +0100
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)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 03 Dec 2020 20:00:05 +0100 |
parents | b68313ee7002 |
children | b545334ae654 |
line wrap: on
line diff
--- 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); - - // If no termcode matched but 'pastetoggle' matched partially it's - // like an incomplete key sequence. + 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 (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; }