diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-23 14:12:56 +0100 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 16:24:07 +0100 |
commit | 820c81e638768994f4e51fdb87eadf31664048ff (patch) | |
tree | 7f75b2710c29318c9e4022b0f248efbd82077f49 /src/nvim/highlight.c | |
parent | 44b8e58f33f82ca1a7c5dbb879a688e317026040 (diff) | |
download | rneovim-820c81e638768994f4e51fdb87eadf31664048ff.tar.gz rneovim-820c81e638768994f4e51fdb87eadf31664048ff.tar.bz2 rneovim-820c81e638768994f4e51fdb87eadf31664048ff.zip |
multigrid: various cleanup (types, unused parameters)
Handle the rare case of full highlight table properly
Diffstat (limited to 'src/nvim/highlight.c')
-rw-r--r-- | src/nvim/highlight.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/nvim/highlight.c b/src/nvim/highlight.c index cbc230b65a..41d60fa3ea 100644 --- a/src/nvim/highlight.c +++ b/src/nvim/highlight.c @@ -98,7 +98,7 @@ static int get_attr_entry(HlEntry entry) return id; } -/// When a UI connects, we need to send it the table of higlights used so far. +/// When a UI connects, we need to send it the table of highlights used so far. void ui_send_all_hls(UI *ui) { for (size_t i = 1; i < kv_size(attr_entries); i++) { @@ -212,13 +212,7 @@ void clear_hl_tables(bool reinit) map_clear(int, int)(combine_attr_entries); highlight_attr_set_all(); highlight_changed(); - redraw_all_later(NOT_VALID); - if (default_grid.ScreenAttrs) { - // the meaning of 0 doesn't change anyway - // but the rest must be retransmitted - memset(default_grid.ScreenAttrs, 0, sizeof(*default_grid.ScreenAttrs) - * (size_t)(default_grid.Rows * default_grid.Columns)); - } + screen_invalidate_highlights(); } else { kv_destroy(attr_entries); map_free(HlEntry, int)(attr_entry_ids); |