From c2b154acad4e1040bdc0e09cf44733ccd877923b Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 22 Aug 2020 11:44:03 +1000 Subject: better handling of our different modes and also cherry picking --- pkg/gui/branches_panel.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/gui/branches_panel.go') diff --git a/pkg/gui/branches_panel.go b/pkg/gui/branches_panel.go index 7f7748834..360c10be6 100644 --- a/pkg/gui/branches_panel.go +++ b/pkg/gui/branches_panel.go @@ -48,7 +48,7 @@ func (gui *Gui) handleBranchSelect() error { // be sure there is a state.Branches array to pick the current branch from func (gui *Gui) refreshBranches() { reflogCommits := gui.State.FilteredReflogCommits - if gui.inFilterMode() { + if gui.State.Modes.Filtering.Active() { // in filter mode we filter our reflog commits to just those containing the path // however we need all the reflog entries to populate the recencies of our branches // which allows us to order them correctly. So if we're filtering we'll just -- cgit v1.2.3