fix: plugin crashes when SymbolOutlineClose used

if SymbolOutline is not already open
This commit is contained in:
Beau
2022-08-31 15:25:02 +10:00
committed by GitHub
parent 6a3ed24c56
commit 14b5380ea8

View File

@@ -50,9 +50,11 @@ function View:setup_view()
end end
function View:close() function View:close()
vim.api.nvim_win_close(self.winnr, true) if self.winnr then
self.winnr = nil vim.api.nvim_win_close(self.winnr, true)
self.bufnr = nil self.winnr = nil
self.bufnr = nil
end
end end
function View:is_open() function View:is_open()