fix(bcommits): wrong selection field is used (#2550)
This commit is contained in:
committed by
GitHub
parent
6d3fbffe42
commit
333966610c
@@ -780,7 +780,7 @@ actions.git_checkout_current_buffer = function(prompt_bufnr)
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
actions.close(prompt_bufnr)
|
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"
|
vim.cmd "checktime"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user