Skip to content

Commit

Permalink
fix: close_on_select applies to split/vsplit jumps (#191)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Dec 12, 2022
1 parent 50d28ad commit 5392fc1
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lua/aerial/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,9 @@ M.select = function(opts)
return
end

if opts.jump and config.close_on_select then
window.close()
end
if opts.split then
local split = opts.split
if split == "vertical" or split == "v" then
Expand All @@ -221,9 +224,6 @@ M.select = function(opts)

if opts.jump then
vim.api.nvim_set_current_win(winid)
if config.close_on_select then
window.close()
end
else
window.update_position(winid)
end
Expand Down

0 comments on commit 5392fc1

Please sign in to comment.