diff --git a/42sh/src/line-editing/control_features.c b/42sh/src/line-editing/control_features.c index c23c0591..828c4f1c 100644 --- a/42sh/src/line-editing/control_features.c +++ b/42sh/src/line-editing/control_features.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/02/02 15:17:28 by gwojda #+# #+# */ -/* Updated: 2017/03/08 23:36:31 by ariard ### ########.fr */ +/* Updated: 2017/03/14 09:40:21 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,6 +26,7 @@ void ft_control_d(void) { ft_putstr("exit\n"); builtin_exit(NULL, (char*[]){"exit", NULL}, NULL); + data_singleton()->line.is_prompt ? ft_prompt() : ft_putstr("> "); } else if (POS < ft_strlen(STR)) ft_del();