comparison src/testdir/test_gui.vim @ 30651:c6e85b9a88a0 v9.0.0660

patch 9.0.0660: mapping with CTRL keys does not work in the GUI Commit: https://github.com/vim/vim/commit/2cd0f27b75c4497bec872819a965b3d6b4d55030 Author: zeertzjq <zeertzjq@outlook.com> Date: Tue Oct 4 20:14:28 2022 +0100 patch 9.0.0660: mapping with CTRL keys does not work in the GUI Problem: Mapping with CTRL keys does not work in the GUI. Solution: Recognize CSI next to K_SPECIAL. (closes https://github.com/vim/vim/issues/11275, closes https://github.com/vim/vim/issues/11270)
author Bram Moolenaar <Bram@vim.org>
date Tue, 04 Oct 2022 21:15:03 +0200
parents bcd204e28fed
children b2a11acd2170
comparison
equal deleted inserted replaced
30650:a0ef66456ec8 30651:c6e85b9a88a0
1730 endfor 1730 endfor
1731 1731
1732 bw! 1732 bw!
1733 endfunc 1733 endfunc
1734 1734
1735 func Test_gui_macro_csi()
1736 " Test for issue #11270
1737 nnoremap <C-L> <Cmd>let g:triggered = 1<CR>
1738 let @q = "\x9b\xfc\x04L"
1739 norm @q
1740 call assert_equal(1, g:triggered)
1741 unlet g:triggered
1742 nunmap <C-L>
1743
1744 " Test for issue #11057
1745 inoremap <C-D>t bbb
1746 call setline(1, "\t")
1747 let @q = "i\x9b\xfc\x04D"
1748 " The end of :normal is like a mapping timing out
1749 norm @q
1750 call assert_equal('', getline(1))
1751 iunmap <C-D>t
1752 endfunc
1753
1735 " vim: shiftwidth=2 sts=2 expandtab 1754 " vim: shiftwidth=2 sts=2 expandtab