Skip to content

Commit

Permalink
chore: use SettingFilter() helper
Browse files Browse the repository at this point in the history
  • Loading branch information
naglis committed Aug 13, 2023
1 parent 91dd120 commit 77b0b7d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/list-fancy/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ func (m model) Update(msg tea.Msg) (tea.Model, tea.Cmd) {

case tea.KeyMsg:
// Don't match any of the keys below if we're actively filtering.
if m.list.FilterState() == list.Filtering {
if m.list.SettingFilter() {
break
}

Expand Down

0 comments on commit 77b0b7d

Please sign in to comment.