diff options
| author | 2024-09-03 22:35:21 -0400 | |
|---|---|---|
| committer | 2024-09-03 22:35:21 -0400 | |
| commit | 7dea3ee0a38334825a510fbbff887cc6891d8a0a (patch) | |
| tree | 2d6f094f9050d6c3df08d0982d384bb16d63d11f | |
| parent | updated the example.lua to use new cd command (diff) | |
added missing lua registrations
| -rw-r--r-- | src/lua_api.c | 2 |
1 files changed, 2 insertions, 0 deletions
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"); } |
