summaryrefslogtreecommitdiff
path: root/src/testdir/test_termcodes.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2020-12-03 19:54:42 +0100
committerBram Moolenaar <Bram@vim.org>2020-12-03 19:54:42 +0100
commit0684e36a7ee0743f2889698fb8e0e14f7acae423 (patch)
tree7a1f23d46e7e1fa94329d7da561bc4a152b7750f /src/testdir/test_termcodes.vim
parentaf0df47a7671a39f2cde950587ba48800188bfb9 (diff)
downloadvim-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/testdir/test_termcodes.vim')
-rw-r--r--src/testdir/test_termcodes.vim10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/testdir/test_termcodes.vim b/src/testdir/test_termcodes.vim
index 12e4dd355..ec0208645 100644
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -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