mirror of
https://github.com/stevearc/aerial.nvim
synced 2024-09-16 14:34:08 +02:00
fix: correctly fetch splitkeep option value
This commit is contained in:
parent
30a64f8590
commit
4428a478e7
1 changed files with 1 additions and 1 deletions
|
@ -232,7 +232,7 @@ M.select = function(opts)
|
|||
util.flash_highlight(bufnr, lnum, config.highlight_on_jump)
|
||||
end
|
||||
-- This option is only in nightly right now
|
||||
local has_splitkeep, splitkeep = pcall(vim.api.nvim_get_option_value, "splitkeep")
|
||||
local has_splitkeep, splitkeep = pcall(vim.api.nvim_get_option_value, "splitkeep", {})
|
||||
if has_splitkeep and splitkeep ~= "cursor" then
|
||||
vim.api.nvim_win_set_cursor(winid, { lnum, col })
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue