summaryrefslogtreecommitdiffstats
path: root/pkg/gui/controllers/switch_to_sub_commits_controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/gui/controllers/switch_to_sub_commits_controller.go')
-rw-r--r--pkg/gui/controllers/switch_to_sub_commits_controller.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/pkg/gui/controllers/switch_to_sub_commits_controller.go b/pkg/gui/controllers/switch_to_sub_commits_controller.go
index 82b52509b..d59f4fdbf 100644
--- a/pkg/gui/controllers/switch_to_sub_commits_controller.go
+++ b/pkg/gui/controllers/switch_to_sub_commits_controller.go
@@ -11,6 +11,7 @@ var _ types.IController = &SwitchToSubCommitsController{}
type CanSwitchToSubCommits interface {
types.Context
GetSelectedRefName() string
+ GetSelectedDescription() string
}
type SwitchToSubCommitsController struct {
@@ -74,6 +75,7 @@ func (self *SwitchToSubCommitsController) viewCommits() error {
self.contexts.SubCommits.SetSelectedLineIdx(0)
self.contexts.SubCommits.SetParentContext(self.context)
self.contexts.SubCommits.SetWindowName(self.context.GetWindowName())
+ self.contexts.SubCommits.SetTitleRef(self.context.GetSelectedDescription())
self.contexts.SubCommits.SetRefName(refName)
err = self.c.PostRefreshUpdate(self.contexts.SubCommits)