aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/repl.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/repl.c b/src/repl.c
index 01bcd76..02fb879 100644
--- a/src/repl.c
+++ b/src/repl.c
@@ -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');