From 52d5c3beebfb248069144921d51af05e8e371aa0 Mon Sep 17 00:00:00 2001 From: Rui Pires Date: Mon, 8 Feb 2021 17:39:50 +0000 Subject: [PATCH] Added initialContent on branch rename --- pkg/gui/branches_panel.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 3e2ffc675..b2053c5a1 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -435,6 +435,7 @@ func (gui *Gui) handleRenameBranch(g *gocui.Gui, v *gocui.View) error { promptForNewName := func() error { return gui.prompt(promptOpts{ title: gui.Tr.NewBranchNamePrompt + " " + branch.Name + ":", + initialContent: branch.Name, handleConfirm: func(newBranchName string) error { if err := gui.GitCommand.RenameBranch(branch.Name, newBranchName); err != nil { return gui.surfaceError(err)