mirror of https://github.com/Hilbis/Hilbish
feat: add to history for lua
parent
972c6e44b3
commit
1c1ec87612
5
main.go
5
main.go
|
@ -90,7 +90,10 @@ func main() {
|
||||||
cmdString = strings.TrimSuffix(cmdString, "\n")
|
cmdString = strings.TrimSuffix(cmdString, "\n")
|
||||||
err = l.DoString(cmdString)
|
err = l.DoString(cmdString)
|
||||||
|
|
||||||
if err == nil { continue }
|
if err == nil {
|
||||||
|
readline.AddHistory(cmdString)
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
cmdArgs := splitInput(cmdString)
|
cmdArgs := splitInput(cmdString)
|
||||||
if len(cmdArgs) == 0 { continue }
|
if len(cmdArgs) == 0 { continue }
|
||||||
|
|
Loading…
Reference in New Issue