aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/screen.lua
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2017-12-12 18:23:19 +0100
committerGitHub <noreply@github.com>2017-12-12 18:23:19 +0100
commit34057045beca40406673ff421a4ef1e8e8c08853 (patch)
treead32d3d1f5e05cd1f522e67bcd42f8968f6dbf21 /test/functional/ui/screen.lua
parentf976826690a975e03bb57f6cc84955c59ee6cff4 (diff)
downloadrneovim-34057045beca40406673ff421a4ef1e8e8c08853.tar.gz
rneovim-34057045beca40406673ff421a4ef1e8e8c08853.tar.bz2
rneovim-34057045beca40406673ff421a4ef1e8e8c08853.zip
ui: forward relevant option updates to UIs (#7520)
also make termguicolors mutable after startup
Diffstat (limited to 'test/functional/ui/screen.lua')
-rw-r--r--test/functional/ui/screen.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/functional/ui/screen.lua b/test/functional/ui/screen.lua
index 075d8c40d7..696feabeed 100644
--- a/test/functional/ui/screen.lua
+++ b/test/functional/ui/screen.lua
@@ -137,6 +137,7 @@ function Screen.new(width, height)
visual_bell = false,
suspended = false,
mode = 'normal',
+ options = {},
_default_attr_ids = nil,
_default_attr_ignore = nil,
_mouse_enabled = true,
@@ -482,6 +483,10 @@ function Screen:_handle_set_icon(icon)
self.icon = icon
end
+function Screen:_handle_option_set(name, value)
+ self.options[name] = value
+end
+
function Screen:_clear_block(top, bot, left, right)
for i = top, bot do
self:_clear_row_section(i, left, right)