mirror of
https://github.com/Hilbis/Hilbish
synced 2025-04-01 19:23:24 +00:00
fix: set prompt in hilbish.read
This commit is contained in:
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…
x
Reference in New Issue
Block a user