mirror of
https://github.com/neovim/neovim.git
synced 2025-12-08 07:32:40 +00:00
test: more coverage for RPC + op-pending #3732
This commit is contained in:
@@ -364,6 +364,24 @@ describe('api', function()
|
|||||||
first line
|
first line
|
||||||
second line]])
|
second line]])
|
||||||
end)
|
end)
|
||||||
|
|
||||||
|
it('does not complete ("interrupt") `d` #3732', function()
|
||||||
|
local screen = Screen.new(20, 4)
|
||||||
|
screen:attach()
|
||||||
|
command('set listchars=eol:$')
|
||||||
|
command('set list')
|
||||||
|
feed('ia<cr>b<cr>c<cr><Esc>kkk')
|
||||||
|
feed('d')
|
||||||
|
-- Make any RPC request (can be non-async: op-pending does not block).
|
||||||
|
nvim('get_current_buf')
|
||||||
|
screen:expect([[
|
||||||
|
^a$ |
|
||||||
|
b$ |
|
||||||
|
c$ |
|
||||||
|
|
|
||||||
|
]])
|
||||||
|
end)
|
||||||
|
|
||||||
it('does not complete ("interrupt") normal-mode map-pending', function()
|
it('does not complete ("interrupt") normal-mode map-pending', function()
|
||||||
command("nnoremap dd :let g:foo='it worked...'<CR>")
|
command("nnoremap dd :let g:foo='it worked...'<CR>")
|
||||||
helpers.insert([[
|
helpers.insert([[
|
||||||
|
|||||||
Reference in New Issue
Block a user