дзеркало
https://github.com/sammy-ette/Hilbish
synced 2025-08-10 02:52:03 +00:00
fix: throw command.exit with 0 code if input is nothing
This commit is contained in:
джерело
38233ccda4
коміт
9eabe5323d
5
main.go
5
main.go
@ -184,7 +184,10 @@ input:
|
|||||||
}
|
}
|
||||||
|
|
||||||
input = strings.TrimSpace(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, "\\") {
|
if strings.HasSuffix(input, "\\") {
|
||||||
for {
|
for {
|
||||||
|
Завантаження…
x
Посилання в новій задачі
Block a user