mirror of
https://github.com/charmbracelet/gum.git
synced 2024-08-17 02:00:46 +03: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 New Issue
Block a user