From fb3cedb161f95ee1d4df5b847e5ea4e0910395e6 Mon Sep 17 00:00:00 2001 From: TorchedSammy <38820196+TorchedSammy@users.noreply.github.com> Date: Sun, 6 Mar 2022 14:23:41 -0400 Subject: [PATCH] fix: set prompt in hilbish.read --- api.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api.go b/api.go index cec7165..d9dd755 100644 --- a/api.go +++ b/api.go @@ -206,7 +206,8 @@ func getenv(key, fallback string) string { // --- @param prompt string func hlread(L *lua.LState) int { luaprompt := L.CheckString(1) - lualr := newLineReader(luaprompt) + lualr := newLineReader("") + lualr.SetPrompt(luaprompt) input, err := lualr.Read() if err != nil {