diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2017-04-21 19:09:50 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2017-04-21 19:09:50 +0200 |
commit | 10f119ab87442a9798bdd2d375b167fca5a0c62d (patch) | |
tree | 9db1c7094b4b998fa4090169d3d59b46ad24629a /test/functional/helpers.lua | |
parent | f50e03f2e35cf4bee8cedb2c95bf9619f3b57bc2 (diff) | |
parent | 48f0542ad6f923443ab4bba858aae2d9558f8d76 (diff) | |
download | rneovim-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.lua | 9 |
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() |