Skip to content

Commit c6a3d3f

Browse files
committed
fix(file-history): Paths rendered incorrectly.
1 parent 85903aa commit c6a3d3f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/diffview/scene/views/file_history/render.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ local function render_files(comp, files)
2323
comp:add_text(icon, icon_hl)
2424

2525
if #file.parent_path > 0 then
26-
comp:add_text(file.path .. "/", "DiffviewFilePanelPath")
26+
comp:add_text(file.parent_path .. "/", "DiffviewFilePanelPath")
2727
end
2828

2929
comp:add_text(file.basename, "DiffviewFilePanelFileName")
@@ -181,7 +181,7 @@ return {
181181
comp:add_text(file.parent_path .. "/", "DiffviewFilePanelPath")
182182
end
183183

184-
comp:add_text(file.path, "DiffviewFilePanelFileName")
184+
comp:add_text(file.basename, "DiffviewFilePanelFileName")
185185
comp:ln()
186186
end
187187
elseif #cached.args > 0 then

0 commit comments

Comments
 (0)