From 1c1ec87612d06220a1a727b5bcc537f0a2465713 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Wed, 24 Mar 2021 20:21:55 -0400 Subject: [PATCH] feat: add to history for lua --- main.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/main.go b/main.go index c932a72b..8d1a285d 100644 --- a/main.go +++ b/main.go @@ -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 }