aboutsummaryrefslogtreecommitdiff
path: root/test/functional/api/vim_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-09-16 12:17:59 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-09-16 12:21:31 +0200
commit9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a (patch)
tree18521f17269e5f911748194dbdcf48371b4e036e /test/functional/api/vim_spec.lua
parent47019bb167e2b2d28c8648d39781c66e3ec02c00 (diff)
downloadrneovim-9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a.tar.gz
rneovim-9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a.tar.bz2
rneovim-9d6bac3219a0cc1647b560b0d28b0a3fce9dc96a.zip
test: more coverage for RPC + op-pending #3732
Diffstat (limited to 'test/functional/api/vim_spec.lua')
-rw-r--r--test/functional/api/vim_spec.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/functional/api/vim_spec.lua b/test/functional/api/vim_spec.lua
index a4b643589a..b849304d45 100644
--- a/test/functional/api/vim_spec.lua
+++ b/test/functional/api/vim_spec.lua
@@ -364,6 +364,24 @@ describe('api', function()
first line
second line]])
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()
command("nnoremap dd :let g:foo='it worked...'<CR>")
helpers.insert([[