Fix crash c[tab]d[tab]
This commit is contained in:
parent
7f7f5e8084
commit
481821a88d
1 changed files with 8 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue