Skip to content

Commit

Permalink
Merge pull request #533 from alirezaarzehgar/refactor_withbool
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Jul 1, 2023
2 parents f6e97db + 32b4156 commit db3236a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions interactive_multiselect_printer.go
Expand Up @@ -85,8 +85,8 @@ func (p InteractiveMultiselectPrinter) WithMaxHeight(maxHeight int) *Interactive
}

// WithFilter sets the Filter option
func (p InteractiveMultiselectPrinter) WithFilter(filter bool) *InteractiveMultiselectPrinter {
p.Filter = filter
func (p InteractiveMultiselectPrinter) WithFilter(b ...bool) *InteractiveMultiselectPrinter {
p.Filter = internal.WithBoolean(b)
return &p
}

Expand Down

0 comments on commit db3236a

Please sign in to comment.