diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-26 17:50:22 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-09-27 09:49:30 +1000 |
commit | 266d8bf0d5d3797c8fc97a29ccc0aad9229b6d58 (patch) | |
tree | 9ada51904547a54149169ab15b8a4f3d4a57bcb4 /pkg/gui | |
parent | da8eac5538b236e4b79e3bab6465e8d5666c48e0 (diff) |
minor fixup
Diffstat (limited to 'pkg/gui')
-rw-r--r-- | pkg/gui/context.go | 2 | ||||
-rw-r--r-- | pkg/gui/custom_commands.go | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go index 29f8be47e..c84e604b8 100644 --- a/pkg/gui/context.go +++ b/pkg/gui/context.go @@ -32,7 +32,7 @@ const ( MENU_CONTEXT_KEY = "menu" CREDENTIALS_CONTEXT_KEY = "credentials" CONFIRMATION_CONTEXT_KEY = "confirmation" - SEARCH_CONTEXT_KEY = "confirmation" + SEARCH_CONTEXT_KEY = "search" COMMIT_MESSAGE_CONTEXT_KEY = "commitMessage" ) diff --git a/pkg/gui/custom_commands.go b/pkg/gui/custom_commands.go index 190fc5586..7181ec2e2 100644 --- a/pkg/gui/custom_commands.go +++ b/pkg/gui/custom_commands.go @@ -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) |