aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cmdline_spec.lua
diff options
context:
space:
mode:
authorzeertzjq <zeertzjq@outlook.com>2023-01-13 12:25:19 +0800
committerGitHub <noreply@github.com>2023-01-13 12:25:19 +0800
commit449c0762d351bca94438813f9226b8906b46adb5 (patch)
tree00c74431f1060a6b5073599892de96329eb50d2b /test/functional/ui/cmdline_spec.lua
parent1097d239c307a10a87fa995c4cfbe5987939e177 (diff)
downloadrneovim-449c0762d351bca94438813f9226b8906b46adb5.tar.gz
rneovim-449c0762d351bca94438813f9226b8906b46adb5.tar.bz2
rneovim-449c0762d351bca94438813f9226b8906b46adb5.zip
test: avoid consecutive mouse input at different positions (#21781)
The seconds call's position may override the first call if the first call isn't processed yet, defeating the purpose of the first call.
Diffstat (limited to 'test/functional/ui/cmdline_spec.lua')
-rw-r--r--test/functional/ui/cmdline_spec.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/functional/ui/cmdline_spec.lua b/test/functional/ui/cmdline_spec.lua
index 0fa6929df0..1c9ac7f7ba 100644
--- a/test/functional/ui/cmdline_spec.lua
+++ b/test/functional/ui/cmdline_spec.lua
@@ -4,6 +4,7 @@ local clear, feed = helpers.clear, helpers.feed
local source = helpers.source
local command = helpers.command
local assert_alive = helpers.assert_alive
+local poke_eventloop = helpers.poke_eventloop
local exec = helpers.exec
local eval = helpers.eval
local eq = helpers.eq
@@ -1401,6 +1402,7 @@ describe('cmdheight=0', function()
{3:[No Name] }|
]])
meths.input_mouse('left', 'press', '', 0, 6, 10)
+ poke_eventloop()
meths.input_mouse('left', 'drag', '', 0, 5, 10)
screen:expect_unchanged()
end)