diff options
Diffstat (limited to 'src/repl.c')
| -rw-r--r-- | src/repl.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/24 16:07:04 by dkaiser #+# #+# */ -/* Updated: 2024/08/29 15:29:16 by dkaiser ### ########.fr */ +/* Updated: 2024/08/29 15:37:27 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -24,6 +24,8 @@ void repl(const char *prompt) input = readline(prompt); if (input == NULL) return ; + if (input[0] == '\0') + continue ; add_history(input); token_list = NULL; tokenizer(input, &token_list, '\0'); |
