From 70bd2a1f19e1cd6f6c0609a0e88d3ed7d7e72f98 Mon Sep 17 00:00:00 2001 From: gwojda Date: Fri, 24 Mar 2017 14:07:40 +0100 Subject: [PATCH] control d --- 42sh/src/line_editing/control_features.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/42sh/src/line_editing/control_features.c b/42sh/src/line_editing/control_features.c index 8db2f684..4b0d0743 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/18 15:13:46 by gwojda ### ########.fr */ +/* Updated: 2017/03/24 14:05:58 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -26,6 +26,8 @@ int ft_buff_f6(char **str, size_t *pos) int ft_control_d(char **str, size_t *pos) { + if (!data_singleton()->line.is_prompt) + return (0); if (!*str || (*str)[0] == '\0') { ft_putstr("exit\n");