Skip to content

Commit fd4e94e

Browse files
committed
tags: rewind to line 1 before executing search (issue #245)
1 parent 72fe322 commit fd4e94e

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/fzf-lua/actions.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ M.vimcmd_file = function(vimcmd, selected, opts)
9393
end
9494
if entry.ctag or entry.line>1 or entry.col>1 then
9595
if entry.ctag then
96+
vim.api.nvim_win_set_cursor(0, {1, 0})
9697
vim.fn.search(entry.ctag, "W")
9798
else
9899
vim.api.nvim_win_set_cursor(0, {tonumber(entry.line), tonumber(entry.col)-1})

0 commit comments

Comments
 (0)