You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When I try to use the remaps to t on a line that is soft wrapped I get an error:
E5108: Error executing lua: /root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:239: Column value outside
range
stack traceback:
[C]: in function 'nvim_win_set_cursor'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:239: in function 'move_cursor_to'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:259: in function 'callback'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:363: in function 'refine_hints'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:327: in function 'hint_with_callback'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:258: in function 'hint_with_regex'
/root/.local/share/nvim/lazy/hop.nvim/lua/hop/init.lua:447: in function 'hint_char1'
/root/.config/nvim/lua/plugins/hop.lua:51: in function </root/.config/nvim/lua/plugins/hop.lua:50>
To Reproduce
Install hop.nvim
Map t to <cmd>:lua require'hop'.hint_char1({direction = require'hop.hint'.HintDirection.AFTER_CURSOR,current_line_only = true, hint_offset = -1})<cr>
Open any file that has a long line
set wrap
Go to the start of the long line, type t, a character that's on the wrapped part of the line and then the hop hint letter.
version (please complete the following information):
Nvim version: v0.10.1
hop.nvim version: v2.7.1
Additional context
Without setting the hint_offset the issue does not occurs. Also, I initially thought that was a AstroNvim issue and reported here. There's some insight from the dev there.
The text was updated successfully, but these errors were encountered:
Describe the bug
When I try to use the remaps to
t
on a line that is soft wrapped I get an error:To Reproduce
t
to<cmd>:lua require'hop'.hint_char1({direction = require'hop.hint'.HintDirection.AFTER_CURSOR,current_line_only = true, hint_offset = -1})<cr>
set wrap
t
, a character that's on the wrapped part of the line and then the hop hint letter.Expected behavior
Cursor should jump to chosen character.
Screenshots
361463062-a50c2475-1e2a-4ca7-9e16-97cff9054c64.mp4
version (please complete the following information):
Additional context
Without setting the
hint_offset
the issue does not occurs. Also, I initially thought that was a AstroNvim issue and reported here. There's some insight from the dev there.The text was updated successfully, but these errors were encountered: