aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/cursor_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/ui/cursor_spec.lua')
-rw-r--r--test/functional/ui/cursor_spec.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua
index d1cddbe06a..3e0370db14 100644
--- a/test/functional/ui/cursor_spec.lua
+++ b/test/functional/ui/cursor_spec.lua
@@ -188,15 +188,15 @@ describe('ui/cursor', function()
-- Event is published ONLY if the cursor style changed.
screen._mode_info = nil
command("echo 'test'")
- screen:expect([[
+ screen:expect{grid=[[
^ |
~ |
~ |
~ |
test |
- ]], nil, nil, function()
+ ]], condition=function()
eq(nil, screen._mode_info)
- end)
+ end}
-- Change the cursor style.
helpers.command('hi Cursor guibg=DarkGray')