Skip to content

Commit

Permalink
Merge pull request #426 from sephiroth74/feature/option_style
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Dec 24, 2022
2 parents 22f4f96 + a331e6f commit cd598d2
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions interactive_select_printer.go
Expand Up @@ -245,7 +245,7 @@ func (p *InteractiveSelectPrinter) Show(text ...string) (string, error) {

func (p *InteractiveSelectPrinter) renderSelectMenu() string {
var content string
content += Sprintf("%s %s: %s\n", p.text, ThemeDefault.SecondaryStyle.Sprint("[type to search]"), p.fuzzySearchString)
content += Sprintf("%s %s: %s\n", p.text, p.SelectorStyle.Sprint("[type to search]"), p.fuzzySearchString)

// find options that match fuzzy search string
rankedResults := fuzzy.RankFindFold(p.fuzzySearchString, p.Options)
Expand Down Expand Up @@ -275,9 +275,9 @@ func (p *InteractiveSelectPrinter) renderSelectMenu() string {
continue
}
if i == p.selectedOption {
content += Sprintf("%s %s\n", p.renderSelector(), option)
content += Sprintf("%s %s\n", p.renderSelector(), p.OptionStyle.Sprint(option))
} else {
content += Sprintf(" %s\n", option)
content += Sprintf(" %s\n", p.OptionStyle.Sprint(option))
}
}

Expand Down

0 comments on commit cd598d2

Please sign in to comment.