1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

minor fixup

This commit is contained in:
Jesse Duffield
2020-09-26 17:50:22 +10:00
parent da8eac5538
commit 266d8bf0d5
2 changed files with 3 additions and 3 deletions

View File

@ -20,7 +20,7 @@ type CustomCommandObjects struct {
SelectedTag *commands.Tag
SelectedStashEntry *commands.StashEntry
SelectedCommitFile *commands.CommitFile
CurrentBranch *commands.Branch
CheckedOutBranch *commands.Branch
}
func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func() error {
@ -36,7 +36,7 @@ func (gui *Gui) handleCustomCommandKeybinding(customCommand CustomCommand) func(
SelectedStashEntry: gui.getSelectedStashEntry(),
SelectedCommitFile: gui.getSelectedCommitFile(),
SelectedSubCommit: gui.getSelectedSubCommit(),
CurrentBranch: gui.currentBranch(),
CheckedOutBranch: gui.currentBranch(),
}
tmpl, err := template.New("custom command template").Parse(customCommand.Command)