From 31cbd34d9724922026a5ae00846ce8105605df5d Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Sat, 3 Feb 2018 20:11:31 +0100 Subject: UI: add "compositor" layer to merge grids for TUI use in a correct way Initially we will use this for the popupmenu, floating windows will follow soon NB: writedelay + compositor is weird, we need more flexible redraw introspection. --- src/nvim/highlight.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/nvim/highlight.c') diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index 41d60fa3ea..20cdbc7ec9 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -101,6 +101,9 @@ static int get_attr_entry(HlEntry entry) /// When a UI connects, we need to send it the table of highlights used so far. void ui_send_all_hls(UI *ui) { + if (!ui->hl_attr_define) { + return; + } for (size_t i = 1; i < kv_size(attr_entries); i++) { Array inspect = hl_inspect((int)i); ui->hl_attr_define(ui, (Integer)i, kv_A(attr_entries, i).attr, -- cgit