diff options
Diffstat (limited to 'pkg/gui/controllers/helpers/mode_helper.go')
-rw-r--r-- | pkg/gui/controllers/helpers/mode_helper.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pkg/gui/controllers/helpers/mode_helper.go b/pkg/gui/controllers/helpers/mode_helper.go index 27c2b9aec..a25862252 100644 --- a/pkg/gui/controllers/helpers/mode_helper.go +++ b/pkg/gui/controllers/helpers/mode_helper.go @@ -72,11 +72,12 @@ func (self *ModeHelper) Statuses() []ModeStatus { { IsActive: self.c.Modes().Filtering.Active, Description: func() string { + filterContent := lo.Ternary(self.c.Modes().Filtering.GetPath() != "", self.c.Modes().Filtering.GetPath(), self.c.Modes().Filtering.GetAuthor()) return self.withResetButton( fmt.Sprintf( "%s '%s'", self.c.Tr.FilteringBy, - self.c.Modes().Filtering.GetPath(), + filterContent, ), style.FgRed, ) |