Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: ttsubo <[email protected]> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2025/04/03 12:50:11 by ttsubo #+# #+# */
/* Updated: 2025/05/04 21:05:24 by ttsubo ### ########.fr */
/* Updated: 2025/05/05 16:17:28 by ttsubo ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -38,6 +38,8 @@ static bool prompt(char *program_name, t_minish *minish)
return (free_prompt(&tokens, &cmds, &line), false);
if (line[0] != '\0')
add_history(line);
else
return (free(line), true);
tokens = tokenizer(line);
cmds = parser(tokens, minish);
if (!cmds)
Expand Down
Loading