From c9caec2c6205ed309aeb45dc2d737f817651c7c8 Mon Sep 17 00:00:00 2001 From: Maas Lalani Date: Sat, 30 Jul 2022 16:50:28 -0400 Subject: [PATCH] fix(filter): `TrimSpace` on input --- filter/command.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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() }