Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 10 additions & 5 deletions lua/diffview/scene/views/file_history/file_history_panel.lua
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,16 @@ FileHistoryPanel.update_entries = async.wrap(function(self, callback)
if self.shutdown:check() then
return
end
if not self:cur_file() then
self:update_components()
self.parent:next_item()
else
self:sync()

local bootstrap_file
if not self:cur_file() and self:num_items() > 0 then
bootstrap_file = self:next_file()
end

self:sync()

if bootstrap_file then
self.parent:set_file(bootstrap_file)
end
Comment on lines +279 to 283
Comment thread
dlyongemallo marked this conversation as resolved.

vim.cmd("redraw")
Expand Down
Loading