From 7dea3ee0a38334825a510fbbff887cc6891d8a0a Mon Sep 17 00:00:00 2001 From: BanceDev Date: Tue, 3 Sep 2024 22:35:21 -0400 Subject: added missing lua registrations --- src/lua_api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lua_api.c b/src/lua_api.c index 7bac763..4dc2149 100644 --- a/src/lua_api.c +++ b/src/lua_api.c @@ -166,6 +166,8 @@ void lua_register_api(lua_State *L) { lua_setfield(L, -2, "getcwd"); lua_pushcfunction(L, l_debug); lua_setfield(L, -2, "debug"); + lua_pushcfunction(L, l_cd); + lua_setfield(L, -2, "cd"); // set the table as global lua_setglobal(L, "lush"); } -- cgit v1.2.3-59-g8ed1b