summaryrefslogtreecommitdiffstats
path: root/pkg/gui/status_panel.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2020-08-17 21:58:30 +1000
committerJesse Duffield <jessedduffield@gmail.com>2020-08-23 14:29:18 +1000
commitac0eedda91ae20992ad106d98fdd164d4264f6f2 (patch)
tree1a9f9c8e5dddeb4d8cf9a9fba12bd949fac7c447 /pkg/gui/status_panel.go
parente87635295a7afde0e82ecee8b820e5708fb2f046 (diff)
lots more stuff
Diffstat (limited to 'pkg/gui/status_panel.go')
-rw-r--r--pkg/gui/status_panel.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go
index 1d5c1abc6..78569768e 100644
--- a/pkg/gui/status_panel.go
+++ b/pkg/gui/status_panel.go
@@ -63,6 +63,10 @@ func (gui *Gui) handleCheckForUpdate(g *gocui.Gui, v *gocui.View) error {
func (gui *Gui) handleStatusClick(g *gocui.Gui, v *gocui.View) error {
currentBranch := gui.currentBranch()
+ if err := gui.switchContext(gui.Contexts.Status.Context); err != nil {
+ return err
+ }
+
cx, _ := v.Cursor()
upstreamStatus := fmt.Sprintf("ā†‘%sā†“%s", currentBranch.Pushables, currentBranch.Pullables)
repoName := utils.GetCurrentRepoName()
@@ -91,10 +95,6 @@ func (gui *Gui) handleStatusSelect() error {
gui.State.SplitMainPanel = false
- if _, err := gui.g.SetCurrentView("status"); err != nil {
- return err
- }
-
gui.getMainView().Title = ""
if gui.inDiffMode() {