From ba09b9bccb33ebc188ea19b1832ed04fc6e47ffa Mon Sep 17 00:00:00 2001 From: w1ck3dg0ph3r Date: Thu, 29 Aug 2024 09:15:07 +0400 Subject: [PATCH] fix: nav_file column off by one --- lua/harpoon/ui.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/harpoon/ui.lua b/lua/harpoon/ui.lua index 515692c9..3370bf11 100644 --- a/lua/harpoon/ui.lua +++ b/lua/harpoon/ui.lua @@ -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",