From 333966610c157609b02773539ccbdf9557e271d8 Mon Sep 17 00:00:00 2001 From: Zhanibek Adilbekov Date: Wed, 7 Jun 2023 15:17:57 +0600 Subject: [PATCH] fix(bcommits): wrong selection field is used (#2550) --- lua/telescope/actions/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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