From b008d48c60bc6c810762cecd9c9d50824d14bcaa Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Mon, 18 Oct 2021 12:12:54 -0400 Subject: [PATCH] fix: handle ctrl c properly when not interactive --- main.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/main.go b/main.go index 6299d3b..66b3d0a 100644 --- a/main.go +++ b/main.go @@ -262,6 +262,9 @@ func HandleSignals() { for range c { if !running { + if !interactive { + os.Exit(0) + } lr.ClearInput() } }