fix: use correct signature for rl lua loader

windows-fixes
TorchedSammy 2022-01-31 17:46:24 -04:00
parent 5d3c129e80
commit afe579f5be
Signed by: sammyette
GPG Key ID: 904FC49417B44DCD
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ func (lr *lineReader) Resize() {
}
// lua module
func (lr *lineReader) Loader() *lua.LTable {
func (lr *lineReader) Loader(L *lua.LState) *lua.LTable {
lrLua := map[string]lua.LGFunction{
"add": lr.luaAddHistory,
"all": lr.luaAllHistory,

View File

@ -65,7 +65,7 @@ func (lr *lineReader) Resize() {
}
// lua module
func (lr *lineReader) Loader() *lua.LTable {
func (lr *lineReader) Loader(L *lua.LState) *lua.LTable {
lrLua := map[string]lua.LGFunction{
"add": lr.luaAddHistory,
"all": lr.luaAllHistory,