1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

allow adding a file viewed from the commit files panel

This commit is contained in:
Jesse Duffield
2019-03-15 13:29:27 +11:00
parent 466fc4227e
commit b6447ebdbb
2 changed files with 12 additions and 0 deletions

View File

@ -99,3 +99,8 @@ func (gui *Gui) refreshCommitFilesView() error {
return gui.handleCommitFileSelect(gui.g, gui.getCommitFilesView())
}
func (gui *Gui) handleOpenOldCommitFile(g *gocui.Gui, v *gocui.View) error {
file := gui.getSelectedCommitFile(g)
return gui.openFile(file.Name)
}