mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
fix(lsp): check if buffer is valid in changetracking (#15505)
This commit is contained in:
parent
8af13ed946
commit
04938eed3e
@ -381,7 +381,7 @@ do
|
|||||||
end
|
end
|
||||||
state.pending_change = function()
|
state.pending_change = function()
|
||||||
state.pending_change = nil
|
state.pending_change = nil
|
||||||
if client.is_stopped() then
|
if client.is_stopped() or not vim.api.nvim_buf_is_valid(bufnr) then
|
||||||
return
|
return
|
||||||
end
|
end
|
||||||
local contentChanges
|
local contentChanges
|
||||||
|
Loading…
Reference in New Issue
Block a user