mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-12 12:55:47 +02:00
allow adding a file viewed from the commit files panel
This commit is contained in:
parent
466fc4227e
commit
b6447ebdbb
2 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue