Skip to content

Commit 5d18739

Browse files
committed
fix(git_diff): copy call opts to ctrl-q action
preserves original cwd/git_worktree/git_dir (if specified)
1 parent 44ae766 commit 5d18739

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

lua/fzf-lua/defaults.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -687,7 +687,9 @@ M.defaults.git = {
687687
_headers = { "cwd", "actions" },
688688
actions = {
689689
["ctrl-q"] = {
690-
fn = function() FzfLua.git_commits() end,
690+
fn = function(_, _o)
691+
FzfLua.git_commits(vim.deepcopy(_o.__call_opts))
692+
end,
691693
reuse = true,
692694
header = "git commits"
693695
},

0 commit comments

Comments
 (0)