Skip to content

Commit

Permalink
fix: bug about splitkeep (fix #199)
Browse files Browse the repository at this point in the history
  • Loading branch information
XXiaoA committed Jan 3, 2023
1 parent 6050ff7 commit c28ce50
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/aerial/navigation.lua
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,9 @@ M.select = function(opts)
if config.highlight_on_jump then
util.flash_highlight(bufnr, lnum, config.highlight_on_jump)
end
if vim.o.splitkeep and vim.o.splitkeep ~= "cursor" then
vim.api.nvim_win_set_cursor(winid, { lnum, col })
end
end

return M

0 comments on commit c28ce50

Please sign in to comment.