diff options
| author | 2024-09-04 12:20:50 -0400 | |
|---|---|---|
| committer | 2024-09-04 12:20:50 -0400 | |
| commit | 995e8da6536dc25a9ad37e8ef11e9b2f92b48e91 (patch) | |
| tree | b2882d3306be8c32723b5b115361f2b92710b5f0 /src/lua_api.c | |
| parent | added exists function to lua api (diff) | |
history saving implemented
Diffstat (limited to 'src/lua_api.c')
| -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 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; |
