diff options
-rw-r--r-- | branches_panel.go | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/branches_panel.go b/branches_panel.go index 64dba4f55..a73d28bb3 100644 --- a/branches_panel.go +++ b/branches_panel.go @@ -51,7 +51,7 @@ func handleNewBranch(g *gocui.Gui, v *gocui.View) error { return nil } -func handleDeleteBranch(g *gocui.Gui, v *gocui.View) error { +func handleDeleteBranch(g *gocui.Gui, v *gocui.View) error { checkedOutBranch := state.Branches[0] selectedBranch := getSelectedBranch(v) if checkedOutBranch.Name == selectedBranch.Name { @@ -59,13 +59,12 @@ func handleDeleteBranch(g *gocui.Gui, v *gocui.View) error { } return createConfirmationPanel(g, v, "Delete Branch", "Are you sure you want delete the branch "+selectedBranch.Name+" ?", func(g *gocui.Gui, v *gocui.View) error { if output, err := gitDeleteBranch(selectedBranch.Name); err != nil { - return createErrorPanel(g, output) - } - return refreshSidePanels(g) - }, nil) + return createErrorPanel(g, output) + } + return refreshSidePanels(g) + }, nil) } - func handleMerge(g *gocui.Gui, v *gocui.View) error { checkedOutBranch := state.Branches[0] selectedBranch := getSelectedBranch(v) @@ -91,7 +90,7 @@ func renderBranchesOptions(g *gocui.Gui) error { "m": "merge", "c": "checkout by name", "n": "new branch", - "d": "delte branch", + "d": "delete branch", "← → ↑ ↓": "navigate", }) } |