aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2014-12-09 14:12:12 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2014-12-10 07:51:06 -0300
commit40977e78a27ac7449f759cefa103e356bc2ca5dd (patch)
treeb9e5237405815b82820d849a8090c61fc4f6d5cc /test/functional/ui/screen.lua
parentb11ada1aba4c6d15128446b9669b5993ce937d11 (diff)
downloadrneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.tar.gz
rneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.tar.bz2
rneovim-40977e78a27ac7449f759cefa103e356bc2ca5dd.zip
input: Recognize mouse events for abstract_ui
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index ff22321e4e..8e7d1ed798 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -147,17 +147,21 @@ function Screen:expect(expected, attr_ids)
end
function Screen:_wait(check, timeout)
- local err
+ local err, checked = false
local function notification_cb(method, args)
assert(method == 'redraw')
self:_redraw(args)
err = check()
+ checked = true
if not err then
stop()
end
return true
end
run(nil, notification_cb, nil, timeout or 5000)
+ if not checked then
+ err = check()
+ end
if err then
error(err)
end