Browse Source

repl history

master
Martin Dørum 8 months ago
parent
commit
ac50263192
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      cmd/main.c

+ 1
- 0
cmd/main.c View File

@@ -94,6 +94,7 @@ static void repl() {
char *rline = readline("> ");
if (rline == NULL) return;
if (rline[0] == '\0') continue;
add_history(rline);
snprintf(line, sizeof(line), "print (%s)", rline);
free(rline);
#else

Loading…
Cancel
Save