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)
}