fix(lsp): check if buffer is valid in changetracking (#15505)

This commit is contained in:
Jose Alvarez 2021-08-28 18:57:06 +09:00 committed by Justin M. Keyes
parent dc15b3a92c
commit 959cf5e53c

View File

@ -380,7 +380,7 @@ do
end
state.pending_change = function()
state.pending_change = nil
if client.is_stopped() then
if client.is_stopped() or not vim.api.nvim_buf_is_valid(bufnr) then
return
end
local contentChanges