diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-09 21:34:17 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-01-09 22:36:07 +1100 |
commit | 9b32e99eb80d3912ecfef3303418e6dce8219a75 (patch) | |
tree | 0d0b526703132dfcf64dd47bbc8598fdfdcd7525 /pkg/gui/branches_panel.go | |
parent | 79e696d8a747edc3bf1b9ddbd8dcd5038ec7d7ba (diff) |
add reflog tab in commits panel
Diffstat (limited to 'pkg/gui/branches_panel.go')
-rw-r--r-- | pkg/gui/branches_panel.go | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 985be932e..1bf408026 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -111,8 +111,10 @@ func (gui *Gui) renderLocalBranchesWithSelection() error { if err := gui.renderListPanel(branchesView, gui.State.Branches); err != nil { return err } - if err := gui.handleBranchSelect(gui.g, branchesView); err != nil { - return err + if gui.g.CurrentView() == branchesView && branchesView.Context == "local-branches" { + if err := gui.handleBranchSelect(gui.g, branchesView); err != nil { + return err + } } return nil |