mirror of
https://github.com/neovim/neovim.git
synced 2025-09-28 05:58:33 +00:00
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:
@@ -16,14 +16,6 @@ typedef enum {
|
||||
} UIWidget;
|
||||
#define UI_WIDGETS (kUIWildmenu + 1)
|
||||
|
||||
typedef struct {
|
||||
bool bold, underline, undercurl, italic, reverse;
|
||||
int foreground, background, special;
|
||||
} HlAttrs;
|
||||
|
||||
#define HLATTRS_INIT \
|
||||
((HlAttrs){ false, false, false, false, false, -1, -1, -1 })
|
||||
|
||||
typedef struct ui_t UI;
|
||||
|
||||
struct ui_t {
|
||||
|
Reference in New Issue
Block a user