diff --git a/filter/command.go b/filter/command.go index 6a5701e..d2b4d79 100644 --- a/filter/command.go +++ b/filter/command.go @@ -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() }