Skip to content
This repository has been archived by the owner on Jan 3, 2024. It is now read-only.

fix: plugin crashes when SymbolOutlineClose used #163

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions lua/symbols-outline/view.lua
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,11 @@ function View:setup_view()
end

function View:close()
vim.api.nvim_win_close(self.winnr, true)
self.winnr = nil
self.bufnr = nil
if self.winnr then
vim.api.nvim_win_close(self.winnr, true)
self.winnr = nil
self.bufnr = nil
end
end

function View:is_open()
Expand Down