We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d61b57 commit 159170cCopy full SHA for 159170c
1 file changed
lua/fzf-lua/providers/git.lua
@@ -74,7 +74,7 @@ local function git_preview(opts, file)
74
-- directory up the path that is a Git repo. git_diff() passes file
75
-- paths relative to the Git repo root so to ensure the previewer
76
-- can interpret the paths correctly, it must use the repo root as cwd.
77
- opts.cwd = path.git_root({ cwd = opts.cwd })
+ opts.cwd = path.git_root(opts)
78
opts.preview = path.git_cwd(opts.preview, opts)
79
if type(opts.preview_pager) == "function" then
80
opts.preview_pager = opts.preview_pager()
0 commit comments