Skip to content

Commit bc4e7e4

Browse files
authored
fix(current_buffer_fuzzy_find): push cursor on edit (#3219)
Setting `push_cursor_on_edit = true` wasn't actually doing anything as the picker replaces `select_default`. Instead, call `normal! m'` manually in the replacement `select_default`.
1 parent d545783 commit bc4e7e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/telescope/builtin/__files.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,13 +567,13 @@ files.current_buffer_fuzzy_find = function(opts)
567567

568568
actions.close(prompt_bufnr)
569569
vim.schedule(function()
570+
vim.cmd "normal! m'"
570571
vim.api.nvim_win_set_cursor(0, { selection.lnum, first_col })
571572
end)
572573
end)
573574

574575
return true
575576
end,
576-
push_cursor_on_edit = true,
577577
})
578578
:find()
579579
end

0 commit comments

Comments
 (0)