aboutsummaryrefslogtreecommitdiff
path: root/test/functional/vimscript/getchar_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/vimscript/getchar_spec.lua')
-rw-r--r--test/functional/vimscript/getchar_spec.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/functional/vimscript/getchar_spec.lua b/test/functional/vimscript/getchar_spec.lua
index 1327d741cf..4ecf082f97 100644
--- a/test/functional/vimscript/getchar_spec.lua
+++ b/test/functional/vimscript/getchar_spec.lua
@@ -5,6 +5,7 @@ local clear = n.clear
local exec = n.exec
local feed = n.feed
local async_command = n.async_meths.nvim_command
+local poke_eventloop = n.poke_eventloop
describe('getchar()', function()
before_each(clear)
@@ -56,8 +57,10 @@ describe('getchar()', function()
"echo 1234 | sleep 1m | call getchar(-1, #{cursor: 'keep'})",
}) do
async_command(cmd)
+ poke_eventloop()
screen:expect_unchanged()
feed('a')
+ poke_eventloop()
screen:expect_unchanged()
end