From 2fe142c38300222ace34ae1a04ac20f19cb74a33 Mon Sep 17 00:00:00 2001 From: gwojda Date: Tue, 14 Mar 2017 09:41:01 +0100 Subject: [PATCH] #86 --- 42sh/src/line-editing/control_features.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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();