sadge to have to do a step backwards but it has to work

This commit is contained in:
Maieul BOYER 2024-09-04 16:18:27 +00:00
parent d4ea200c1c
commit 92823aff80
16 changed files with 1215 additions and 897 deletions

View file

@ -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 || chr == '\n')
if (ret == 0)
{
if (line.len == 0)
return (string_free(line), *out = NULL, true);