fix: return prompt when line is empty
This commit is contained in:
parent
5c1d76fe83
commit
133acaeb17
@ -83,6 +83,8 @@ void fork_execve(t_minishell *minishell, char *path, char **argv)
|
|||||||
void simple_builtins(t_minishell *minishell)
|
void simple_builtins(t_minishell *minishell)
|
||||||
{
|
{
|
||||||
char *path;
|
char *path;
|
||||||
|
if (!minishell->tokens)
|
||||||
|
return ;
|
||||||
if (cmp_value(minishell->tokens, "clear"))
|
if (cmp_value(minishell->tokens, "clear"))
|
||||||
printf("\033[2J\033[1;1H");
|
printf("\033[2J\033[1;1H");
|
||||||
else if (cmp_value(minishell->tokens, "env"))
|
else if (cmp_value(minishell->tokens, "env"))
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user