1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +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

@ -32,7 +32,7 @@ const (
MENU_CONTEXT_KEY = "menu" MENU_CONTEXT_KEY = "menu"
CREDENTIALS_CONTEXT_KEY = "credentials" CREDENTIALS_CONTEXT_KEY = "credentials"
CONFIRMATION_CONTEXT_KEY = "confirmation" CONFIRMATION_CONTEXT_KEY = "confirmation"
SEARCH_CONTEXT_KEY = "confirmation" SEARCH_CONTEXT_KEY = "search"
COMMIT_MESSAGE_CONTEXT_KEY = "commitMessage" COMMIT_MESSAGE_CONTEXT_KEY = "commitMessage"
) )

View File

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