From 3ba955ff8cdafd49d6bebcdef0790e3bcce98508 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Thu, 10 Jan 2019 00:35:49 +0100 Subject: added history --- repl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/repl.c b/repl.c index 090b65d..a8aae54 100644 --- a/repl.c +++ b/repl.c @@ -36,6 +36,8 @@ int main(int argc, char *argv[]) { printf("\n"); break; } + + add_history(input); int size = strlen(argv[1]) + 1 + strlen(input) + 1; char *command = malloc(size); -- cgit v1.2.3