aboutsummaryrefslogtreecommitdiffstats
path: root/src/lush.c
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-03 10:51:42 -0400
committerGravatar BanceDev 2024-09-03 10:51:42 -0400
commitd5d3f94aa5eacab4a8d6a1a2beb244798330ec6a (patch)
treecab0007065c7b3494ba9052d49ced85b1986dd26 /src/lush.c
parentfixed crash in cd when no path found (diff)
update lua api to table and added getcwd to api
Diffstat (limited to 'src/lush.c')
-rw-r--r--src/lush.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/lush.c b/src/lush.c
index bf5a283..bdb9ba5 100644
--- a/src/lush.c
+++ b/src/lush.c
@@ -123,9 +123,11 @@ int lush_time(lua_State *L, char ***args) {
}
int lush_lush(lua_State *L, char ***args) {
- // run the lua file given
+ // move past lush command
args[0]++;
- lua_load_script(L, *args[0]);
+
+ // run the lua file given
+ lua_load_script(L, args[0][0]);
// return pointer back for free()
args[0]--;