mirror of
https://github.com/zoriya/telescope.nvim.git
synced 2026-08-12 09:00:23 +00:00
fix(bcommits): wrong selection field is used (#2550)
(cherry picked from commit 333966610c)
This commit is contained in:
committed by
Simon Hauser
parent
533c7fb1b3
commit
e7d17b1890
@@ -740,7 +740,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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user