1
0
forked from aniani/vim

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

@@ -1966,6 +1966,16 @@ func RunTest_modifyOtherKeys(func)
bwipe aaa
bwipe bbb
" Ctrl-V X 33 is 3
call setline(1, '')
call feedkeys("a\<C-V>" .. a:func('X', 2) .. "33\<Esc>", 'Lx!')
call assert_equal("3", getline(1))
" Ctrl-V U 12345 is Unicode 12345
call setline(1, '')
call feedkeys("a\<C-V>" .. a:func('U', 2) .. "12345\<Esc>", 'Lx!')
call assert_equal("\U12345", getline(1))
bwipe!
set timeoutlen&
endfunc