mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 05:15:53 +02:00
good progress
This commit is contained in:
parent
a32947e7a7
commit
2f5d5034db
8 changed files with 98 additions and 28 deletions
|
@ -102,13 +102,21 @@ func (gui *Gui) refreshCommitFilesView() error {
|
|||
}
|
||||
gui.State.CommitFiles = files
|
||||
|
||||
if err := gui.renderCommitFiles(); err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
return gui.handleCommitFileSelect()
|
||||
}
|
||||
|
||||
func (gui *Gui) renderCommitFiles() error {
|
||||
gui.refreshSelectedLine(&gui.State.Panels.CommitFiles.SelectedLine, len(gui.State.CommitFiles))
|
||||
|
||||
commitsFileView := gui.getCommitFilesView()
|
||||
displayStrings := presentation.GetCommitFileListDisplayStrings(gui.State.CommitFiles, gui.State.Diff.Ref)
|
||||
gui.renderDisplayStrings(commitsFileView, displayStrings)
|
||||
|
||||
return gui.handleCommitFileSelect()
|
||||
return nil
|
||||
}
|
||||
|
||||
func (gui *Gui) handleOpenOldCommitFile(g *gocui.Gui, v *gocui.View) error {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue