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();