Skip to content

Commit b485e3e

Browse files
ilan-schemoulFabijanZulj
authored andcommitted
fix: cwd for show_full_commit
1 parent bcfbc4c commit b485e3e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lua/blame/views/window_view.lua

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ function WindowView:open(lines)
168168
vim.api.nvim_win_get_buf(self.original_window)
169169
)
170170
local cwd = vim.fn.expand("%:p:h")
171+
self.cwd = cwd
171172
self.blame_stack_client =
172173
BlameStack:new(self.config, self, self.original_window, file_path, cwd)
173174
end
@@ -348,7 +349,7 @@ function WindowView:show_full_commit()
348349

349350
self.git_client:show(
350351
nil,
351-
vim.fn.getcwd(),
352+
self.cwd,
352353
commit.hash,
353354
function(show_output)
354355
vim.schedule(function()

0 commit comments

Comments
 (0)