feat: add to history for lua

pull/9/head
TorchedSammy 2021-03-24 20:21:55 -04:00
parent 972c6e44b3
commit 1c1ec87612
1 changed files with 4 additions and 1 deletions

View File

@ -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 }