diff --git a/cmd/ytgo/yt.go b/cmd/ytgo/yt.go index e3318d3..3e0df6f 100644 --- a/cmd/ytgo/yt.go +++ b/cmd/ytgo/yt.go @@ -56,10 +56,7 @@ func main() { } defer rl.Close() - query, err = rl.Readline() - if err != nil { - return // exit on EOF/SIGINT - } + goto endloop } else { query = strings.Join(flag.Args(), " ") }