2
2
mirror of https://github.com/Hilbis/Hilbish synced 2025-04-01 19:23:24 +00:00

fix: initialize lua api before handling signals (fixes #236)

This commit is contained in:
sammyette 2023-02-01 19:56:27 -04:00
parent f97a04179d
commit e2cf417144
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD

View File

@ -115,9 +115,11 @@ func main() {
os.Setenv("SHELL", os.Args[0])
}
go handleSignals()
lr = newLineReader("", false)
luaInit()
go handleSignals()
// If user's config doesn't exixt,
if _, err := os.Stat(defaultConfPath); os.IsNotExist(err) && *configflag == defaultConfPath {
// Read default from current directory