From 995e8da6536dc25a9ad37e8ef11e9b2f92b48e91 Mon Sep 17 00:00:00 2001 From: BanceDev Date: Wed, 4 Sep 2024 12:20:50 -0400 Subject: history saving implemented --- src/lua_api.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/lua_api.c') 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 #include @@ -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; -- cgit v1.2.3-59-g8ed1b