aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2017-04-03 16:16:21 +0200
committerJustin M. Keyes <justinkz@gmail.com>2017-04-04 14:19:26 +0200
commit3ccd59ee8216f3da812c5cf81eb392e6a95b539a (patch)
tree218958ab0e2d7b7e359778f68a56079da47a3c2d /test
parent9d560d5c6b02d34690ca47ee6f32e31ee4a6d90e (diff)
downloadrneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.tar.gz
rneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.tar.bz2
rneovim-3ccd59ee8216f3da812c5cf81eb392e6a95b539a.zip
'guicursor': enabled=false if 'guicursor' is empty
Closes #6429 Closes #6430
Diffstat (limited to 'test')
-rw-r--r--test/functional/ui/cursor_spec.lua1
-rw-r--r--test/functional/ui/screen.lua3
2 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/ui/cursor_spec.lua b/test/functional/ui/cursor_spec.lua
index 1e3a9fcb60..c022a5649e 100644
--- a/test/functional/ui/cursor_spec.lua
+++ b/test/functional/ui/cursor_spec.lua
@@ -144,6 +144,7 @@ describe('ui/cursor', function()
}
-- Default 'guicursor' published on startup.
eq(expected_cursor_style, screen._cursor_style)
+ eq(true, screen._cursor_style_enabled)
eq('normal', screen.mode)
-- Event is published ONLY if the cursor style changed.
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 3f8173c8e2..ff71194dab 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -345,7 +345,8 @@ function Screen:_handle_resize(width, height)
}
end
-function Screen:_handle_cursor_style_set(style)
+function Screen:_handle_cursor_style_set(enabled, style)
+ self._cursor_style_enabled = enabled
self._cursor_style = style
end