diff --git a/42sh/src/line-editing/readline.c b/42sh/src/line-editing/readline.c index 49079633..5c75131c 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/03/09 00:09:19 by ariard ### ########.fr */ +/* Updated: 2017/03/10 15:48:30 by gwojda ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,6 +22,8 @@ int readline(int fd, int prompt, char **input) } readline_init(prompt); *input = ft_read_stdin(); + if (STR) + ft_current_str(STR, POS); ft_putchar('\n'); if (!prompt) *input = ft_history_parsing();