2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-03-30 18:23:23 +00:00

fix: handle ctrl c properly when not interactive

This commit is contained in:
sammyette 2021-10-18 12:12:54 -04:00
parent 2cf979401b
commit b008d48c60
No known key found for this signature in database
GPG Key ID: 50EE40A2809851F5

View File

@ -262,6 +262,9 @@ func HandleSignals() {
for range c {
if !running {
if !interactive {
os.Exit(0)
}
lr.ClearInput()
}
}