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

This commit is contained in:
Zhanibek Adilbekov
2023-06-07 15:17:57 +06:00
committed by GitHub
parent 6d3fbffe42
commit 333966610c

View File

@@ -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