fix: throw command.exit with 0 code if input is nothing

pull/78/head
sammyette 2021-10-13 22:51:38 -04:00
parent 38233ccda4
commit 9eabe5323d
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5
1 changed files with 4 additions and 1 deletions

View File

@ -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 {