aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/testdir
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2022-04-28 21:18:58 +0800
committerzeertzjq <zeertzjq@outlook.com>2022-04-29 15:51:04 +0800
commit4adf2123dd94a3d5303fe200c7e909067e1cda34 (patch)
treef6dcfba23c192f0e127fc53448556b4108d53614 /src/nvim/testdir
parent1d97781dc53416072387b1d71aeaf11caecd8cf0 (diff)
downloadrneovim-4adf2123dd94a3d5303fe200c7e909067e1cda34.tar.gz
rneovim-4adf2123dd94a3d5303fe200c7e909067e1cda34.tar.bz2
rneovim-4adf2123dd94a3d5303fe200c7e909067e1cda34.zip
vim-patch:8.2.4837: modifiers not simplified when timed out
Problem: Modifiers not simplified when timed out or using feedkeys() with 'n" flag. Solution: Adjust how mapped flag and timeout are used. (closes vim/vim#10305) https://github.com/vim/vim/commit/68a573ce2b996602a86b14d9b258ebb8c657604f
Diffstat (limited to 'src/nvim/testdir')
-rw-r--r--src/nvim/testdir/test_termcodes.vim16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/nvim/testdir/test_termcodes.vim b/src/nvim/testdir/test_termcodes.vim
index 987889f33c..f3b10a922e 100644
--- a/src/nvim/testdir/test_termcodes.vim
+++ b/src/nvim/testdir/test_termcodes.vim
@@ -6,5 +6,21 @@ func Test_simplify_ctrl_at()
bw!
endfunc
+func Test_simplify_noremap()
+ call feedkeys("i\<*C-M>", 'nx')
+ call assert_equal('', getline(1))
+ call assert_equal([0, 2, 1, 0, 1], getcurpos())
+ bw!
+endfunc
+
+func Test_simplify_timedout()
+ inoremap <C-M>a b
+ call feedkeys("i\<*C-M>", 'xt')
+ call assert_equal('', getline(1))
+ call assert_equal([0, 2, 1, 0, 1], getcurpos())
+ iunmap <C-M>a
+ bw!
+endfunc
+
" vim: shiftwidth=2 sts=2 expandtab