From f5c55f066b72b3c2445b69aa359fa3fef7c8fd24 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Tue, 25 Aug 2020 19:24:14 +1000 Subject: use new branch logic when 'checking out' remote branch --- pkg/gui/keybindings.go | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'pkg/gui/keybindings.go') diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 1582e796b..19b576c06 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -1423,10 +1423,11 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Description: gui.Tr.SLocalize("editRemote"), }, { - ViewName: "branches", - Contexts: []string{REMOTE_BRANCHES_CONTEXT_KEY}, - Key: gui.getKey("universal.select"), - Handler: gui.handleCheckoutRemoteBranch, + ViewName: "branches", + Contexts: []string{REMOTE_BRANCHES_CONTEXT_KEY}, + Key: gui.getKey("universal.select"), + // gonna use the exact same handler as the 'n' keybinding because everybody wants this to happen when they checkout a remote branch + Handler: gui.wrappedHandler(gui.handleNewBranchOffCurrentItem), Description: gui.Tr.SLocalize("checkout"), }, { -- cgit v1.2.3