diff src/testdir/test_termcodes.vim @ 28627:da77eb586899 v8.2.4837

patch 8.2.4837: modifiers not simplified when timed out Commit: https://github.com/vim/vim/commit/68a573ce2b996602a86b14d9b258ebb8c657604f Author: zeertzjq <zeertzjq@outlook.com> Date: Thu Apr 28 14:10:01 2022 +0100 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 #10305)
author Bram Moolenaar <Bram@vim.org>
date Thu, 28 Apr 2022 15:15:03 +0200
parents daad4c7b39be
children 5da38c4ffe92
line wrap: on
line diff
--- a/src/testdir/test_termcodes.vim
+++ b/src/testdir/test_termcodes.vim
@@ -2444,5 +2444,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