Skip to content

Commit d4cae80

Browse files
committed
fix: cusorr pos is incorrect in insert mode at the end of the line
Ref: #171
1 parent 73215b7 commit d4cae80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/yanky/telescope/mapping.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ function mapping.put(type)
2323

2424
vim.schedule(function()
2525
if nil ~= cursor_pos then
26-
vim.api.nvim_win_set_cursor(0, { cursor_pos[1], math.max(cursor_pos[2] - 1, 0) })
26+
vim.api.nvim_win_set_cursor(0, { cursor_pos[1], math.max(cursor_pos[2], 0) })
2727
end
2828
picker.actions.put(type, mapping.state.is_visual)(selection.value)
2929
end)

0 commit comments

Comments
 (0)