aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua_api.c
diff options
context:
space:
mode:
authorGravatar BanceDev 2024-09-04 12:20:50 -0400
committerGravatar BanceDev 2024-09-04 12:20:50 -0400
commit995e8da6536dc25a9ad37e8ef11e9b2f92b48e91 (patch)
treeb2882d3306be8c32723b5b115361f2b92710b5f0 /src/lua_api.c
parentadded exists function to lua api (diff)
history saving implemented
Diffstat (limited to 'src/lua_api.c')
-rw-r--r--src/lua_api.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/lua_api.c b/src/lua_api.c
index 9f4bdc8..1040478 100644
--- a/src/lua_api.c
+++ b/src/lua_api.c
@@ -16,6 +16,7 @@ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
*/
#include "lua_api.h"
+#include "history.h"
#include "lush.h"
#include <lauxlib.h>
#include <lua.h>
@@ -76,6 +77,7 @@ static int execute_command(lua_State *L, const char *line) {
for (int i = 0; args[i]; i++) {
free(args[i]);
}
+ lush_push_history(line);
free(args);
free(commands);
return status;