mirror of https://github.com/Hilbis/Hilbish
Compare commits
2 Commits
f6aaf85cca
...
ce0b2ab955
Author | SHA1 | Date |
---|---|---|
TorchedSammy | ce0b2ab955 | |
TorchedSammy | 9261253b63 |
4
lua.go
4
lua.go
|
@ -201,8 +201,8 @@ func hshinterval(L *lua.LState) int {
|
||||||
NRet: 0,
|
NRet: 0,
|
||||||
Protect: true,
|
Protect: true,
|
||||||
}); err != nil {
|
}); err != nil {
|
||||||
fmt.Fprintln(os.Stderr,
|
fmt.Fprintln(os.Stderr, "Error in interval function:\n\n", err)
|
||||||
"Error in interval function:\n\n", err)
|
stop <- lua.LTrue // stop the interval
|
||||||
}
|
}
|
||||||
case <-stop:
|
case <-stop:
|
||||||
ticker.Stop()
|
ticker.Stop()
|
||||||
|
|
1
main.go
1
main.go
|
@ -218,7 +218,6 @@ func ContinuePrompt(prev string) (string, error) {
|
||||||
lr.SetPrompt(multilinePrompt)
|
lr.SetPrompt(multilinePrompt)
|
||||||
cont, err := lr.Read()
|
cont, err := lr.Read()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
fmt.Println("")
|
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
cont = strings.TrimSpace(cont)
|
cont = strings.TrimSpace(cont)
|
||||||
|
|
Loading…
Reference in New Issue