mirror of
https://github.com/charmbracelet/gum
synced 2024-06-16 04:25:09 +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()
|
input, _ := stdin.Read()
|
||||||
var choices []string
|
var choices []string
|
||||||
if input != "" {
|
if input != "" {
|
||||||
choices = strings.Split(input, "\n")
|
choices = strings.Split(strings.TrimSpace(input), "\n")
|
||||||
} else {
|
} else {
|
||||||
choices = files.List()
|
choices = files.List()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue