Merge pull request #201 from XXiaoA/fix199

fix: bug about splitkeep (fix #199)
This commit is contained in:
Steven Arcangeli 2023-01-03 23:28:28 -08:00 committed by GitHub
commit 8b16f89732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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