diff options
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/editor/ctrl_c_spec.lua (renamed from test/functional/ex_cmds/ctrl_c_spec.lua) | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/test/functional/ex_cmds/ctrl_c_spec.lua b/test/functional/editor/ctrl_c_spec.lua index c2e4bf0fb7..60131bf2a4 100644 --- a/test/functional/ex_cmds/ctrl_c_spec.lua +++ b/test/functional/editor/ctrl_c_spec.lua @@ -72,4 +72,23 @@ describe("CTRL-C (mapped)", function() -- INSERT -- | ]]) end) + + it('interrupts recursive mapping', function() + command('nnoremap <C-C> <Nop>') + command('nmap <F2> <Ignore><F2>') + feed('<F2>') + sleep(10) + feed('foo<C-C>') + -- wait for input buffer to be flushed + sleep(10) + feed('i') + screen:expect([[ + ^ | + ~ | + ~ | + ~ | + ~ | + -- INSERT -- | + ]]) + end) end) |