From 949d0b2c6270f3fdbcbced8740e02c0a1d312ab0 Mon Sep 17 00:00:00 2001 From: gwojda Date: Tue, 28 Feb 2017 10:45:36 +0100 Subject: [PATCH] issue #44 --- 42sh/src/line-editing/readline.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/42sh/src/line-editing/readline.c b/42sh/src/line-editing/readline.c index 5d9795ec..f4f4321f 100644 --- a/42sh/src/line-editing/readline.c +++ b/42sh/src/line-editing/readline.c @@ -6,7 +6,7 @@ /* By: gwojda +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/15 14:19:48 by gwojda #+# #+# */ -/* Updated: 2017/02/16 12:45:32 by gwojda ### ########.fr */ +/* Updated: 2017/02/28 10:43:33 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -101,6 +101,8 @@ char *readline(char *prompt) readline_init(prompt); input = ft_read_stdin(); + if (STR) + ft_current_str(STR, POS); ft_putchar('\n'); if (!prompt) input = ft_history_parsing();