mirror of
https://github.com/neovim/neovim.git
synced 2026-07-11 20:09:44 +00:00
fix(input): allow Ctrl-C to interrupt a recursive mapping even if mapped
This commit is contained in:
@@ -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)
|
||||
Reference in New Issue
Block a user