diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-02-03 20:11:31 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2019-02-02 16:31:49 +0100 |
commit | 31cbd34d9724922026a5ae00846ce8105605df5d (patch) | |
tree | 34d4076660cfa48f0a2cd1a896f69e27f484135e /src/nvim/highlight.c | |
parent | 894f6bee54e80811f95b8767327d39ab277a4866 (diff) | |
download | rneovim-31cbd34d9724922026a5ae00846ce8105605df5d.tar.gz rneovim-31cbd34d9724922026a5ae00846ce8105605df5d.tar.bz2 rneovim-31cbd34d9724922026a5ae00846ce8105605df5d.zip |
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.
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 3 |
1 files changed, 3 insertions, 0 deletions
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, |