/* ************************************************************************** */ /* */ /* ::: :::::::: */ /* rl_home_function.c :+: :+: :+: */ /* +:+ +:+ +:+ */ /* By: sbenning +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/08 19:28:10 by sbenning #+# #+# */ /* Updated: 2016/12/09 12:04:47 by sbenning ### ########.fr */ /* */ /* ************************************************************************** */ #include "ft_readline.h" int rl_home_function(t_line *line, long int input) { if (RL_IS(line->bitset, RL_SELECT)) RL_UNSET(line->bitset, RL_SELECT); if (!line->pos) return (0); curs_backward(&line->curs, line->pos); line->pos = 0; return (0); (void)input; }