summaryrefslogtreecommitdiffstats
path: root/pkg/gui/reflog_panel.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/reflog_panel.go')
-rw-r--r--pkg/gui/reflog_panel.go12
1 files changed, 9 insertions, 3 deletions
diff --git a/pkg/gui/reflog_panel.go b/pkg/gui/reflog_panel.go
index 0e69cbbd8..b985f0faa 100644
--- a/pkg/gui/reflog_panel.go
+++ b/pkg/gui/reflog_panel.go
@@ -121,9 +121,15 @@ func (gui *Gui) handleCheckoutReflogCommit(g *gocui.Gui, v *gocui.View) error {
return nil
}
- err := gui.createConfirmationPanel(g, gui.getCommitsView(), true, gui.Tr.SLocalize("checkoutCommit"), gui.Tr.SLocalize("SureCheckoutThisCommit"), func(g *gocui.Gui, v *gocui.View) error {
- return gui.handleCheckoutRef(commit.Sha, handleCheckoutRefOptions{})
- }, nil)
+ err := gui.createConfirmationPanel(createConfirmationPanelOpts{
+ returnToView: gui.getCommitsView(),
+ returnFocusOnClose: true,
+ title: gui.Tr.SLocalize("checkoutCommit"),
+ prompt: gui.Tr.SLocalize("SureCheckoutThisCommit"),
+ handleConfirm: func() error {
+ return gui.handleCheckoutRef(commit.Sha, handleCheckoutRefOptions{})
+ },
+ })
if err != nil {
return err
}