diff src/testdir/test_gui.vim @ 20701:fbee68c6aab1 v8.2.0904

patch 8.2.0904: assuming modifyOtherKeys for rhs of mapping Commit: https://github.com/vim/vim/commit/46cd43bda102c3782bba1c4c629836e010734d77 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jun 4 22:22:11 2020 +0200 patch 8.2.0904: assuming modifyOtherKeys for rhs of mapping Problem: Assuming modifyOtherKeys for rhs of mapping. Solution: Ignore seenModifyOtherKeys for mapped characters. (closes https://github.com/vim/vim/issues/6200)
author Bram Moolenaar <Bram@vim.org>
date Thu, 04 Jun 2020 22:30:04 +0200
parents 357dea6b9fde
children 08940efa6b4e
line wrap: on
line diff
--- a/src/testdir/test_gui.vim
+++ b/src/testdir/test_gui.vim
@@ -856,4 +856,14 @@ func Test_gui_run_cmd_in_terminal()
   let &guioptions = save_guioptions
 endfunc
 
+func Test_gui_recursive_mapping()
+  nmap ' <C-W>
+  nmap <C-W>a :let didit = 1<CR>
+  call feedkeys("'a", 'xt')
+  call assert_equal(1, didit)
+
+  nunmap '
+  nunmap <C-W>a
+endfunc
+
 " vim: shiftwidth=2 sts=2 expandtab