2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-02 03:33:22 +00:00

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)
This commit is contained in:
TorchedSammy 2022-03-07 21:01:21 -04:00
parent 853dfa369f
commit 4a4cb3409f
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

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