update: normed lots of stuff

This commit is contained in:
maix0 2024-09-16 19:23:28 +00:00
parent 84a825cb0b
commit 678587d481
11 changed files with 325 additions and 300 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/11 18:10:24 by maiboyer #+# #+# */
/* Updated: 2024/09/13 15:30:46 by maiboyer ### ########.fr */
/* Updated: 2024/09/15 20:52:06 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -32,7 +32,7 @@ bool line_no_tty_impl(t_str *out)
chr = '\n';
if (read_fd(get_stdin(), (t_u8 *)&chr, 1, &ret))
return (string_free(line), *out = NULL, true);
if (ret == 0)
if (ret == 0 || chr == '\n')
{
if (line.len == 0)
return (string_free(line), *out = NULL, true);