Skip to content

Commit 1bc17e3

Browse files
authored
Merge pull request #629 from w1ck3dg0ph3r/fix-nav-file-column
Fix nav_file column being off by 1
2 parents ccae1b9 + ba09b9b commit 1bc17e3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/harpoon/ui.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ function M.nav_file(id)
195195
vim.api.nvim_set_current_buf(buf_id)
196196
vim.api.nvim_buf_set_option(buf_id, "buflisted", true)
197197
if set_row and mark.row and mark.col then
198-
vim.cmd(string.format(":call cursor(%d, %d)", mark.row, mark.col))
198+
vim.api.nvim_win_set_cursor(0, { mark.row, mark.col })
199199
log.debug(
200200
string.format(
201201
"nav_file(): Setting cursor to row: %d, col: %d",

0 commit comments

Comments
 (0)