Mercurial > vim
comparison 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 |
comparison
equal
deleted
inserted
replaced
20700:f1f248c9b90d | 20701:fbee68c6aab1 |
---|---|
854 " TODO: how to check that the command ran in a separate terminal? | 854 " TODO: how to check that the command ran in a separate terminal? |
855 " Maybe check for $TERM (dumb vs xterm) in the spawned shell? | 855 " Maybe check for $TERM (dumb vs xterm) in the spawned shell? |
856 let &guioptions = save_guioptions | 856 let &guioptions = save_guioptions |
857 endfunc | 857 endfunc |
858 | 858 |
859 func Test_gui_recursive_mapping() | |
860 nmap ' <C-W> | |
861 nmap <C-W>a :let didit = 1<CR> | |
862 call feedkeys("'a", 'xt') | |
863 call assert_equal(1, didit) | |
864 | |
865 nunmap ' | |
866 nunmap <C-W>a | |
867 endfunc | |
868 | |
859 " vim: shiftwidth=2 sts=2 expandtab | 869 " vim: shiftwidth=2 sts=2 expandtab |