From 9eabe5323dda625d544c3b3bf18349ce2e67144b Mon Sep 17 00:00:00 2001 From: sammyette <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 13 Oct 2021 22:51:38 -0400 Subject: [PATCH] fix: throw command.exit with 0 code if input is nothing --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index 513a7b5..61b10b2 100644 --- a/main.go +++ b/main.go @@ -184,7 +184,10 @@ input: } input = strings.TrimSpace(input) - if len(input) == 0 { continue } + if len(input) == 0 { + hooks.Em.Emit("command.exit", 0) + continue + } if strings.HasSuffix(input, "\\") { for {