Skip to content

Commit

Permalink
Merge pull request #629 from w1ck3dg0ph3r/fix-nav-file-column
Browse files Browse the repository at this point in the history
Fix nav_file column being off by 1
  • Loading branch information
ThePrimeagen authored Aug 29, 2024
2 parents ccae1b9 + ba09b9b commit 1bc17e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/harpoon/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ function M.nav_file(id)
vim.api.nvim_set_current_buf(buf_id)
vim.api.nvim_buf_set_option(buf_id, "buflisted", true)
if set_row and mark.row and mark.col then
vim.cmd(string.format(":call cursor(%d, %d)", mark.row, mark.col))
vim.api.nvim_win_set_cursor(0, { mark.row, mark.col })
log.debug(
string.format(
"nav_file(): Setting cursor to row: %d, col: %d",
Expand Down

0 comments on commit 1bc17e3

Please sign in to comment.