fix(bcommits): wrong selection field is used (#2550)

(cherry picked from commit 333966610c)
This commit is contained in:
Zhanibek Adilbekov
2023-06-09 11:27:16 +02:00
committed by Simon Hauser
parent 533c7fb1b3
commit e7d17b1890
+1 -1
View File
@@ -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