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)
windows-fixes
TorchedSammy 2022-03-07 21:01:21 -04:00
parent 853dfa369f
commit 4a4cb3409f
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
1 changed files with 1 additions and 0 deletions

View File

@ -187,6 +187,7 @@ input:
input = strings.TrimSpace(input)
if len(input) == 0 {
running = true
hooks.Em.Emit("command.exit", 0)
continue
}