We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ccae1b9 + ba09b9b commit 1bc17e3Copy full SHA for 1bc17e3
lua/harpoon/ui.lua
@@ -195,7 +195,7 @@ function M.nav_file(id)
195
vim.api.nvim_set_current_buf(buf_id)
196
vim.api.nvim_buf_set_option(buf_id, "buflisted", true)
197
if set_row and mark.row and mark.col then
198
- vim.cmd(string.format(":call cursor(%d, %d)", mark.row, mark.col))
+ vim.api.nvim_win_set_cursor(0, { mark.row, mark.col })
199
log.debug(
200
string.format(
201
"nav_file(): Setting cursor to row: %d, col: %d",
0 commit comments