ui/tui: highlighting refactor

Make HlAttr contain highlighting state for both color modes (cterm and rgb).
This allows us to implement termguicolors completely in the TUI.

Simplify some logic duplicated between ui.c and screen.c. Also avoid
some superfluous highlighting reset events.
This commit is contained in:
Björn Linse
2018-02-06 19:46:45 +01:00
parent c205360f00
commit 5d8da126d0
18 changed files with 195 additions and 289 deletions

View File

@@ -455,6 +455,9 @@ function Screen:_handle_visual_bell()
self.visual_bell = true
end
function Screen:_handle_default_colors_set()
end
function Screen:_handle_update_fg(fg)
self._fg = fg
end