summaryrefslogtreecommitdiffstats
path: root/pkg/gui
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-09-26 17:50:22 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-09-27 09:49:30 +1000
commit266d8bf0d5d3797c8fc97a29ccc0aad9229b6d58 (patch)
tree9ada51904547a54149169ab15b8a4f3d4a57bcb4 /pkg/gui
parentda8eac5538b236e4b79e3bab6465e8d5666c48e0 (diff)
minor fixup
Diffstat (limited to 'pkg/gui')
-rw-r--r--pkg/gui/context.go2
-rw-r--r--pkg/gui/custom_commands.go4
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)