diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2018-12-31 17:37:50 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-12-31 17:37:50 +0100 |
commit | 6427894d891100c0a41f569ecde65bfdce2ea00c (patch) | |
tree | c34bef18907b53dc98e0009ff69a799440080384 /src/nvim/highlight.c | |
parent | ccbcd390d42d33a15f15c29fab5d6076a6d3ac08 (diff) | |
parent | c72d9ce0a602ba53b99145f64f0d43327a4e3eb3 (diff) | |
download | rneovim-6427894d891100c0a41f569ecde65bfdce2ea00c.tar.gz rneovim-6427894d891100c0a41f569ecde65bfdce2ea00c.tar.bz2 rneovim-6427894d891100c0a41f569ecde65bfdce2ea00c.zip |
Merge pull request #8455 from UtkarshMe/grid-split
implement ext_multigrid: draw each window on a separate resizable grid.
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 5a9727f46e..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 (ScreenAttrs) { - // the meaning of 0 doesn't change anyway - // but the rest must be retransmitted - memset(ScreenAttrs, 0, - sizeof(*ScreenAttrs) * (size_t)(screen_Rows * screen_Columns)); - } + screen_invalidate_highlights(); } else { kv_destroy(attr_entries); map_free(HlEntry, int)(attr_entry_ids); |