0
0
mirror of https://github.com/vim/vim.git synced 2025-09-25 03:54:15 -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

@@ -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())