fix(view): dont go to main when not in the trouble window when closing
This commit is contained in:
parent
286c04474c
commit
8d5e05c0d0
|
@ -498,7 +498,9 @@ function M:open()
|
|||
end
|
||||
|
||||
function M:close()
|
||||
self:goto_main()
|
||||
if vim.api.nvim_get_current_win() == self.win.win then
|
||||
self:goto_main()
|
||||
end
|
||||
Preview.close()
|
||||
self.win:close()
|
||||
return self
|
||||
|
|
Loading…
Reference in New Issue