Patching the double comparaison

This commit is contained in:
Raphael 2024-08-02 23:21:41 +02:00
parent 72b90debcc
commit 24b210fe86

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */ /* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/30 17:19:01 by maiboyer #+# #+# */ /* Created: 2024/07/30 17:19:01 by maiboyer #+# #+# */
/* Updated: 2024/07/30 18:17:49 by maiboyer ### ########.fr */ /* Updated: 2024/08/02 23:21:18 by rparodi ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -91,7 +91,7 @@ bool line_edit_feed_block_ret(t_line_state *state, t_str *out, \
*ret = line_edit_feed_esc(state, out, seq); *ret = line_edit_feed_esc(state, out, seq);
else if (c == K_SIGQUIT) else if (c == K_SIGQUIT)
*ret = false; *ret = false;
else if (c >= '\x00' && c <= '\x1F') else if (c <= '\x1F')
*ret = false; *ret = false;
else else
return (false); return (false);