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/normal.c | |
parent | af0df47a7671a39f2cde950587ba48800188bfb9 (diff) |
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/normal.c')
-rw-r--r-- | src/normal.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/normal.c b/src/normal.c index d90326feb2..da0ffc1498 100644 --- a/src/normal.c +++ b/src/normal.c @@ -4927,7 +4927,7 @@ nv_replace(cmdarg_T *cap) if (cap->nchar == Ctrl_V) { had_ctrl_v = Ctrl_V; - cap->nchar = get_literal(); + cap->nchar = get_literal(FALSE); // Don't redo a multibyte character with CTRL-V. if (cap->nchar > DEL) had_ctrl_v = NUL; @@ -5208,7 +5208,7 @@ nv_vreplace(cmdarg_T *cap) else { if (cap->extra_char == Ctrl_V) // get another character - cap->extra_char = get_literal(); + cap->extra_char = get_literal(FALSE); stuffcharReadbuff(cap->extra_char); stuffcharReadbuff(ESC); if (virtual_active()) |