diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2016-01-13 00:39:54 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2016-01-13 02:40:57 -0500 |
commit | 8eeda7169aa47881f0b6d697e291a1ef85c43e4e (patch) | |
tree | cbce774bee0feea6769fba009b271af32f53e9c2 /test/functional/legacy/mapping_spec.lua | |
parent | 3dfbeabf35dbfe5494a4adce7b4d94d56bbe0171 (diff) | |
download | rneovim-8eeda7169aa47881f0b6d697e291a1ef85c43e4e.tar.gz rneovim-8eeda7169aa47881f0b6d697e291a1ef85c43e4e.tar.bz2 rneovim-8eeda7169aa47881f0b6d697e291a1ef85c43e4e.zip |
terminal: less babysitting of mapped_ctrl_c
process_interrupts() checks get_real_state() so we can avoid some
housekeeping of mapped_ctrl_c in terminal-mode.
Diffstat (limited to 'test/functional/legacy/mapping_spec.lua')
-rw-r--r-- | test/functional/legacy/mapping_spec.lua | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/test/functional/legacy/mapping_spec.lua b/test/functional/legacy/mapping_spec.lua index f0cef3773d..3f86ec60de 100644 --- a/test/functional/legacy/mapping_spec.lua +++ b/test/functional/legacy/mapping_spec.lua @@ -21,7 +21,7 @@ describe('mapping', function() vim ]]) end) - it('works with Ctrl-c in Insert mode', function() + it('Ctrl-c works in Insert mode', function() -- Mapping of ctrl-c in insert mode execute('set cpo-=< cpo-=k') execute('inoremap <c-c> <ctrl-c>') @@ -41,16 +41,13 @@ describe('mapping', function() ]]) end) - it('works with Ctrl-c in Visual mode', function() - -- Mapping of ctrl-c in Visual mode. - execute([[vnoremap <c-c> :<C-u>$put ='vmap works']]) + it('Ctrl-c works in Visual mode', function() + execute([[vnoremap <c-c> :<C-u>$put ='vmap works'<cr>]]) feed('GV') - -- For some reason the mapping is only triggered when <C-c> is entered in a - -- separate feed command. + -- XXX: For some reason the mapping is only triggered + -- when <C-c> is in a separate feed command. wait() feed('<c-c>') - wait() - feed('<cr>') execute('vunmap <c-c>') expect([[ @@ -58,7 +55,7 @@ describe('mapping', function() vmap works]]) end) - it('works with Ctrl-c in Insert mode with langmap', function() + it('langmap', function() -- langmap should not get remapped in insert mode. execute('inoremap { FAIL_ilangmap') execute('set langmap=+{ langnoremap') |