Fix git show <c-v>

This commit is contained in:
2025-02-27 14:29:30 +01:00
parent 4cb3681a3a
commit 40c2afc5b4
+4 -4
View File
@@ -86,13 +86,13 @@ local git_show = function(opts)
end)
map({ "i", "n" }, "<c-v>", function(bufr)
actions.close(bufr)
local entry = action_state.get_selected_entry()
vim.cmd("Gvsplit " .. entry.value .. ":" .. entry.current_file)
local selection = action_state.get_selected_entry()
vim.cmd("Gvsplit " .. opts.ref .. ":" .. selection.value)
end)
map({ "i", "n" }, "<c-s>", function(bufr)
actions.close(bufr)
local entry = action_state.get_selected_entry()
vim.cmd("Gsplit " .. entry.value .. ":" .. entry.current_file)
local selection = action_state.get_selected_entry()
vim.cmd("Gsplit " .. opts.ref .. ":" .. selection.value)
end)
return true
end,