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