Skip to content

Commit

Permalink
Merge pull request #393 from adombeck/master
Browse files Browse the repository at this point in the history
  • Loading branch information
MarvinJWendt committed Sep 1, 2022
2 parents 2e3f65c + d9e5425 commit 454a6f0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions interactive_multiselect_printer.go
Expand Up @@ -227,8 +227,10 @@ func (p *InteractiveMultiselectPrinter) Show(text ...string) ([]string, error) {
cancel()
return true, nil
case keys.Enter:
// Select option if not already selected
p.selectOption(p.fuzzySearchMatches[p.selectedOption])
if len(p.fuzzySearchMatches) > 0 {
// Select option if not already selected
p.selectOption(p.fuzzySearchMatches[p.selectedOption])
}
area.Update(p.renderSelectMenu())
}

Expand Down

0 comments on commit 454a6f0

Please sign in to comment.