Skip to content

Commit

Permalink
feat: add to history for lua
Browse files Browse the repository at this point in the history
  • Loading branch information
TorchedSammy committed Mar 25, 2021
1 parent 972c6e4 commit 1c1ec87
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ func main() {
cmdString = strings.TrimSuffix(cmdString, "\n")
err = l.DoString(cmdString)

if err == nil { continue }
if err == nil {
readline.AddHistory(cmdString)
continue
}

cmdArgs := splitInput(cmdString)
if len(cmdArgs) == 0 { continue }
Expand Down

0 comments on commit 1c1ec87

Please sign in to comment.