Skip to content

Commit

Permalink
feat: Go to corresponding code window after closing outline
Browse files Browse the repository at this point in the history
  • Loading branch information
hedyhli committed Nov 26, 2023
1 parent 8062cff commit 39668e5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lua/outline/sidebar.lua
Original file line number Diff line number Diff line change
Expand Up @@ -530,7 +530,9 @@ end

---@see outline.close_outline
function Sidebar:close()
local code_win = self.code.win
self.view:close()
vim.fn.win_gotoid(code_win)
end

---@see outline.focus_outline
Expand Down

0 comments on commit 39668e5

Please sign in to comment.