/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* ft_history_up.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/11/10 13:44:15 by jhalford #+# #+# */ /* Updated: 2016/12/07 16:52:28 by jhalford ### ########.fr */ /* */ /* ************************************************************************** */ #include "line_editing.h" int ft_history_up(t_data *data, char *buf) { int i; char *str; (void)buf; if (!data->line.history) return (0); if (!data->line.history->prev) return (0); data->line.history = data->line.history->prev; str = data->line.history->content; i = 0; return (0); }