mirror of https://github.com/Hilbis/Hilbish
fix: create an empty line reader instance for hilbish.read (closes #190)
parent
b4ca5bfda3
commit
3bec2c91a8
4
api.go
4
api.go
|
@ -263,7 +263,9 @@ func hlread(t *rt.Thread, c *rt.GoCont) (rt.Cont, error) {
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
lualr := newLineReader("", true)
|
lualr := &lineReader{
|
||||||
|
rl: readline.NewInstance(),
|
||||||
|
}
|
||||||
lualr.SetPrompt(luaprompt)
|
lualr.SetPrompt(luaprompt)
|
||||||
|
|
||||||
input, err := lualr.Read()
|
input, err := lualr.Read()
|
||||||
|
|
Loading…
Reference in New Issue