aboutsummaryrefslogtreecommitdiff
path: root/test/functional/helpers.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-21 19:09:50 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-21 19:09:50 +0200
commit10f119ab87442a9798bdd2d375b167fca5a0c62d (patch)
tree9db1c7094b4b998fa4090169d3d59b46ad24629a /test/functional/helpers.lua
parentf50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2 (diff)
parent48f0542ad6f923443ab4bba858aae2d9558f8d76 (diff)
downloadrneovim-10f119ab87442a9798bdd2d375b167fca5a0c62d.tar.gz
rneovim-10f119ab87442a9798bdd2d375b167fca5a0c62d.tar.bz2
rneovim-10f119ab87442a9798bdd2d375b167fca5a0c62d.zip
Merge #6539 'More cursor shape modes'
Diffstat (limited to 'test/functional/helpers.lua')
-rw-r--r--test/functional/helpers.lua9
1 files changed, 8 insertions, 1 deletions
diff --git a/test/functional/helpers.lua b/test/functional/helpers.lua
index 5882758b5a..0f30910450 100644
--- a/test/functional/helpers.lua
+++ b/test/functional/helpers.lua
@@ -392,7 +392,14 @@ end
-- sleeps the test runner (_not_ the nvim instance)
local function sleep(ms)
- run(nil, nil, nil, ms)
+ local function notification_cb(method, _)
+ if method == "redraw" then
+ error("Screen is attached; use screen:sleep() instead.")
+ end
+ return true
+ end
+
+ run(nil, notification_cb, nil, ms)
end
local function curbuf_contents()