aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--repl.c2
1 files changed, 2 insertions, 0 deletions
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);