diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2019-02-02 21:27:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-02 21:27:09 +0100 |
commit | 79a0ea2bec7c4a1c82990c07c87098b87bc2a1da (patch) | |
tree | ffdf0820ab0b70622d58d40936ac6f0d9e2658fd /src/nvim/highlight.c | |
parent | f89d0d8230f34dca49eddbea179d274955b572b9 (diff) | |
parent | 0f96a21e3fd6ba989e27a992e48c084dd02d8885 (diff) | |
download | rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.tar.gz rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.tar.bz2 rneovim-79a0ea2bec7c4a1c82990c07c87098b87bc2a1da.zip |
Merge pull request #9530 from bfredl/pum_float
Implement popupmenu as a floating grid internally to reduce flicker
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, |