diff --git a/pkg/gui/arrangement.go b/pkg/gui/arrangement.go index 955831a5..a8ae19e6 100644 --- a/pkg/gui/arrangement.go +++ b/pkg/gui/arrangement.go @@ -87,19 +87,6 @@ func (gui *Gui) getMidSectionWeights() (int, int) { } func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []*boxlayout.Box { - if gui.State.Filter.active { - return []*boxlayout.Box{ - { - Window: "filterPrefix", - Size: runewidth.StringWidth(gui.filterPrompt()), - }, - { - Window: "filter", - Weight: 1, - }, - } - } - result := []*boxlayout.Box{} if len(appStatus) > 0 { @@ -111,6 +98,19 @@ func (gui *Gui) infoSectionChildren(informationStr string, appStatus string) []* ) } + if gui.State.Filter.active { + return append(result, []*boxlayout.Box{ + { + Window: "filterPrefix", + Size: runewidth.StringWidth(gui.filterPrompt()), + }, + { + Window: "filter", + Weight: 1, + }, + }...) + } + result = append(result, []*boxlayout.Box{ {