Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
Do not use hint_offset for jumping back on cmd_with.
Browse files Browse the repository at this point in the history
  • Loading branch information
hadronized committed Jul 21, 2022
1 parent 7f55d79 commit 7aed6ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/hop/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 7aed6ac

Please sign in to comment.