1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-17 00:18:05 +02:00

move helpers into their own struct

This commit is contained in:
Jesse Duffield
2022-01-30 10:40:48 +11:00
parent 2692637fbe
commit f97de692e3
16 changed files with 111 additions and 79 deletions

View File

@ -126,7 +126,7 @@ func (gui *Gui) handleOpenOldCommitFile() error {
return nil
}
return gui.filesHelper.OpenFile(node.GetPath())
return gui.helpers.files.OpenFile(node.GetPath())
}
func (gui *Gui) handleEditCommitFile() error {
@ -139,7 +139,7 @@ func (gui *Gui) handleEditCommitFile() error {
return gui.c.ErrorMsg(gui.c.Tr.ErrCannotEditDirectory)
}
return gui.filesHelper.EditFile(node.GetPath())
return gui.helpers.files.EditFile(node.GetPath())
}
func (gui *Gui) handleToggleFileForPatch() error {