aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2017-03-20 22:56:58 +0100
committerJustin M. Keyes <justinkz@gmail.com>2017-04-01 23:14:05 +0200
commitdd4a5fcbb65ade08b5d2c7951b2924d2d04dc99e (patch)
tree398b4811259964de8f16b5adf034698b46a2e5c4 /test/functional/ui/screen.lua
parent16babc66870b5579f3305fa1289f25e1dc496655 (diff)
downloadrneovim-dd4a5fcbb65ade08b5d2c7951b2924d2d04dc99e.tar.gz
rneovim-dd4a5fcbb65ade08b5d2c7951b2924d2d04dc99e.tar.bz2
rneovim-dd4a5fcbb65ade08b5d2c7951b2924d2d04dc99e.zip
tui: 'guicursor' shape #6044
Closes #2583
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 54f43387dc..2d04949bb3 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -313,6 +313,8 @@ function Screen:_redraw(updates)
if handler ~= nil then
handler(self, unpack(update[i]))
else
+ assert(self._on_event, "Either add an Screen:_handle_XXX method "..
+ " or call Screen:set_on_event_handler")
self._on_event(method, update[i])
end
end
@@ -343,6 +345,10 @@ function Screen:_handle_resize(width, height)
}
end
+function Screen:_handle_cursor_style_set(styles)
+ self._cursor_styles = styles
+end
+
function Screen:_handle_clear()
self:_clear_block(self._scroll_region.top, self._scroll_region.bot,
self._scroll_region.left, self._scroll_region.right)