diff --git a/main.c b/main.c index 7d4ffc8..c3bee52 100644 --- a/main.c +++ b/main.c @@ -113,6 +113,7 @@ void ft_ctrlc(int num) } else { + rl_replace_line("", 0); rl_on_new_line(); ft_putchar_fd('\n', 1); rl_redisplay();