ui: forward relevant option updates to UIs (#7520)

also make termguicolors mutable after startup
This commit is contained in:
Björn Linse
2017-12-12 18:23:19 +01:00
committed by GitHub
parent f976826690
commit 34057045be
15 changed files with 255 additions and 15 deletions

View File

@@ -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)