Fix crash c[tab]d[tab]

This commit is contained in:
M600 2017-02-16 16:01:44 +01:00
parent 7f7f5e8084
commit 481821a88d

View file

@ -6,7 +6,7 @@
/* By: alao <alao@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/15 12:03:30 by alao #+# #+# */
/* Updated: 2017/02/16 15:31:40 by alao ### ########.fr */
/* Updated: 2017/02/16 16:01:12 by alao ### ########.fr */
/* */
/* ************************************************************************** */
@ -64,6 +64,13 @@ int c_rematch(t_comp *c, long int keypress)
// }
return (1);
}
if (c->lst == NULL)
{
DG("Clear");
c_clear(data_singleton());
// data_singleton()->line.pos += 1;
return (1);
}
}
return (0);
}