We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a3fc4ae commit aeca096Copy full SHA for aeca096
lua/diffview/scene/file_entry.lua
@@ -110,7 +110,7 @@ function FileEntry:convert_layout(target_layout)
110
local function create_file(rev, symbol)
111
return File({
112
adapter = self.adapter,
113
- path = self.path,
+ path = symbol == "a" and self.oldpath or self.path,
114
kind = self.kind,
115
commit = self.commit,
116
get_data = get_data,
@@ -191,7 +191,7 @@ function FileEntry.with_layout(layout_class, opt)
191
192
193
adapter = opt.adapter,
194
- path = opt.path,
+ path = symbol == "a" and opt.oldpath or opt.path,
195
kind = opt.kind,
196
commit = opt.commit,
197
get_data = opt.get_data,
0 commit comments