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,10 +50,12 @@ function View:setup_view()
end
function View:close()
if self.winnr then
vim.api.nvim_win_close(self.winnr, true)
self.winnr = nil
self.bufnr = nil
end
end
function View:is_open()
return self.winnr