diff --git a/lua/telescope/actions/init.lua b/lua/telescope/actions/init.lua index 1437e7c..9b2558b 100644 --- a/lua/telescope/actions/init.lua +++ b/lua/telescope/actions/init.lua @@ -780,7 +780,7 @@ actions.git_checkout_current_buffer = function(prompt_bufnr) return end actions.close(prompt_bufnr) - utils.get_os_command_output({ "git", "checkout", selection.value, "--", selection.file }, cwd) + utils.get_os_command_output({ "git", "checkout", selection.value, "--", selection.current_file }, cwd) vim.cmd "checktime" end