fix: plugin crashes when SymbolOutlineClose used
if SymbolOutline is not already open
This commit is contained in:
@@ -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()
|
||||||
|
|||||||
Reference in New Issue
Block a user