From 73c533f539bbc08780c9904695d4d03f4c3fe42f Mon Sep 17 00:00:00 2001 From: mitchell Date: Wed, 6 Dec 2023 14:40:10 -0500 Subject: [PATCH] Do not filter displayed choices based on what the user types. --- internal/prompt/prompt.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/internal/prompt/prompt.go b/internal/prompt/prompt.go index 6da18f055c..02981bc059 100644 --- a/internal/prompt/prompt.go +++ b/internal/prompt/prompt.go @@ -146,9 +146,10 @@ func (p *Prompt) Select(title, message string, choices []string, defaultChoice * var response string err := survey.AskOne(&Select{&survey.Select{ - Message: formatMessage(message, !p.out.Config().Colored), - Options: choices, - Default: defChoice, + Message: formatMessage(message, !p.out.Config().Colored), + Options: choices, + Default: defChoice, + FilterFn: func(input string, choices []string) []string { return choices }, // no filter }}, &response, nil) if err != nil { return "", locale.NewInputError(err.Error())