fix: return prompt when line is empty

This commit is contained in:
Quinten Mennen 2025-02-11 16:28:10 +01:00
parent 5c1d76fe83
commit 133acaeb17

View File

@ -83,6 +83,8 @@ void fork_execve(t_minishell *minishell, char *path, char **argv)
void simple_builtins(t_minishell *minishell)
{
char *path;
if (!minishell->tokens)
return ;
if (cmp_value(minishell->tokens, "clear"))
printf("\033[2J\033[1;1H");
else if (cmp_value(minishell->tokens, "env"))