mirror of
https://github.com/charmbracelet/gum
synced 2024-05-23 00:22:20 +02:00
fix(filter): TrimSpace
on input
This commit is contained in:
parent
66993d8ef1
commit
c9caec2c62
|
@ -27,7 +27,7 @@ func (o Options) Run() error {
|
|||
input, _ := stdin.Read()
|
||||
var choices []string
|
||||
if input != "" {
|
||||
choices = strings.Split(input, "\n")
|
||||
choices = strings.Split(strings.TrimSpace(input), "\n")
|
||||
} else {
|
||||
choices = files.List()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue