mirror of https://github.com/Hilbis/Hilbish
fix: set prompt in hilbish.read
parent
ef6bf24cda
commit
fb3cedb161
3
api.go
3
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 {
|
||||
|
|
Loading…
Reference in New Issue