25 lines
1.2 KiB
C
25 lines
1.2 KiB
C
/* ************************************************************************** */
|
|
/* */
|
|
/* ::: :::::::: */
|
|
/* rl_end_function.c :+: :+: :+: */
|
|
/* +:+ +:+ +:+ */
|
|
/* By: sbenning <sbenning@student.42.fr> +#+ +:+ +#+ */
|
|
/* +#+#+#+#+#+ +#+ */
|
|
/* 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;
|
|
}
|