mirror of
https://github.com/neovim/neovim.git
synced 2026-08-28 10:01:49 +00:00
fix(lsp): unwanted redraw for buffer not in window #40002
Problem: Redrawing when a loaded buffer is not shown in any window on
the current tabpage.
Solution: Check that buffer is shown in a (normal) window before redrawing.
This commit is contained in:
@@ -584,7 +584,9 @@ function STHighlighter:process_response(response, client, request_id, version, i
|
||||
end
|
||||
|
||||
-- redraw all windows displaying buffer
|
||||
api.nvim__redraw({ buf = self.bufnr, valid = true })
|
||||
if vim.fn.win_gettype(vim.fn.bufwinid(self.bufnr)) == '' then
|
||||
api.nvim__redraw({ buf = self.bufnr, valid = true })
|
||||
end
|
||||
end
|
||||
|
||||
--- @param bufnr integer
|
||||
|
||||
Reference in New Issue
Block a user