diff --git a/cmd/micro/initlua.go b/cmd/micro/initlua.go index 3cbb3b2d0..5acb979d3 100644 --- a/cmd/micro/initlua.go +++ b/cmd/micro/initlua.go @@ -54,7 +54,7 @@ func luaImportMicro() *lua.LTable { ulua.L.SetField(pkg, "Tabs", luar.New(ulua.L, func() *action.TabList { return action.Tabs })) - ulua.L.SetField(pkg, "Lock", luar.New(ulua.L, ulua.Lock)) + ulua.L.SetField(pkg, "Lock", luar.New(ulua.L, &ulua.Lock)) return pkg }