diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-10-04 20:14:28 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2022-10-04 20:14:28 +0100 |
commit | 2cd0f27b75c4497bec872819a965b3d6b4d55030 (patch) | |
tree | 4949cd7728a75470f146acd7778160b86da6059f /src/testdir/test_gui.vim | |
parent | caf05f504e062642c35a919b04f1b5638f994602 (diff) |
patch 9.0.0660: mapping with CTRL keys does not work in the GUIv9.0.0660
Problem: Mapping with CTRL keys does not work in the GUI.
Solution: Recognize CSI next to K_SPECIAL. (closes #11275, closes #11270)
Diffstat (limited to 'src/testdir/test_gui.vim')
-rw-r--r-- | src/testdir/test_gui.vim | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/testdir/test_gui.vim b/src/testdir/test_gui.vim index 447eee8652..8ac0985c39 100644 --- a/src/testdir/test_gui.vim +++ b/src/testdir/test_gui.vim @@ -1732,4 +1732,23 @@ func Test_gui_lowlevel_keyevent() bw! endfunc +func Test_gui_macro_csi() + " Test for issue #11270 + nnoremap <C-L> <Cmd>let g:triggered = 1<CR> + let @q = "\x9b\xfc\x04L" + norm @q + call assert_equal(1, g:triggered) + unlet g:triggered + nunmap <C-L> + + " Test for issue #11057 + inoremap <C-D>t bbb + call setline(1, "\t") + let @q = "i\x9b\xfc\x04D" + " The end of :normal is like a mapping timing out + norm @q + call assert_equal('', getline(1)) + iunmap <C-D>t +endfunc + " vim: shiftwidth=2 sts=2 expandtab |