From 7aed6acae66636d86f23b0bf973447c358cbc030 Mon Sep 17 00:00:00 2001 From: Dimitri Sabadie Date: Thu, 21 Jul 2022 20:28:30 +0200 Subject: [PATCH] Do not use hint_offset for jumping back on cmd_with. --- lua/hop/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/hop/init.lua b/lua/hop/init.lua index 944d2dc3..d5b8eb05 100644 --- a/lua/hop/init.lua +++ b/lua/hop/init.lua @@ -314,7 +314,7 @@ function M.cmd_with(jump_target_gtr, cmd, opts) M.move_cursor_to(jt.window, jt.line + 1, jt.column - 1, opts.hint_offset) vim.cmd(cmd) print('jumping back to', vim.inspect(pos)) - M.move_cursor_to(win, pos[1] + 1, pos[2], opts.hint_offset) + M.move_cursor_to(win, pos[1] + 1, pos[2], 0) end) end