mirror of
https://gitea.com/gitea/tea.git
synced 2024-06-03 10:11:22 +05:30
fix bug with default value of prompts.Select()
This commit is contained in:
parent
013419bec8
commit
7493ee2ce7
|
@ -135,7 +135,7 @@ func Select(prompt string, options []string, customVal, noneVal string) (string,
|
|||
Message: prompt,
|
||||
Options: makeSelectOpts(options, customVal, noneVal),
|
||||
VimMode: true,
|
||||
Default: noneVal,
|
||||
Default: options[0],
|
||||
}
|
||||
if err := survey.AskOne(promptA, &selection); err != nil {
|
||||
return "", err
|
||||
|
|
Loading…
Reference in a new issue