From 4a4cb3409f20ee70f2ea726f6a2fb9a93bb847e1 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Mon, 7 Mar 2022 21:01:21 -0400 Subject: [PATCH] fix: set running to true before throwing exit hook on no input this fixes an issue with the prompt being kind of a mess when enter alone is pressed (and hilbish doesn't try to run anything) --- main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/main.go b/main.go index b20cdb7..8d39825 100644 --- a/main.go +++ b/main.go @@ -187,6 +187,7 @@ input: input = strings.TrimSpace(input) if len(input) == 0 { + running = true hooks.Em.Emit("command.exit", 0) continue }