Skip to content

Commit

Permalink
fix: close_on_select will no longer affect preview
Browse files Browse the repository at this point in the history
  • Loading branch information
WieeRd committed Jun 26, 2022
1 parent 17773f8 commit 4c588bd
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 @@ -214,15 +214,15 @@ 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
if config.highlight_on_jump then
util.flash_highlight(bufnr, item.lnum, config.highlight_on_jump)
end
if config.close_on_select then
window.close()
end
end

return M

0 comments on commit 4c588bd

Please sign in to comment.