diff options
author | Björn Linse <bjorn.linse@gmail.com> | 2021-12-27 08:56:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 08:56:45 +0100 |
commit | 06ca0667a1719c7e105fd7e0844ff73cc90af0e4 (patch) | |
tree | 0a6a3a89965c732c7cf041b4d98319ff7b817317 /src | |
parent | 56f3c41f5f9d2f07d436744a5c7d7a07b31aac98 (diff) | |
parent | 505c12cb9c65ef82f217db25e4d93bffe9783306 (diff) | |
download | rneovim-06ca0667a1719c7e105fd7e0844ff73cc90af0e4.tar.gz rneovim-06ca0667a1719c7e105fd7e0844ff73cc90af0e4.tar.bz2 rneovim-06ca0667a1719c7e105fd7e0844ff73cc90af0e4.zip |
Merge pull request #16799 from bfredl/nohlsplash
fix(api): nvim__set_hl_ns causes extra redraws
Diffstat (limited to 'src')
-rw-r--r-- | src/nvim/api/vim.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/api/vim.c b/src/nvim/api/vim.c index f81cdf9deb..4a0222234d 100644 --- a/src/nvim/api/vim.c +++ b/src/nvim/api/vim.c @@ -169,7 +169,7 @@ void nvim__set_hl_ns(Integer ns_id, Error *err) // event path for redraws caused by "fast" events. This could tie in with // better throttling of async events causing redraws, such as non-batched // nvim_buf_set_extmark calls from async contexts. - if (!provider_active && !ns_hl_changed) { + if (!provider_active && !ns_hl_changed && must_redraw < NOT_VALID) { multiqueue_put(main_loop.events, on_redraw_event, 0); } ns_hl_changed = true; |