From: Lukáš Jiřiště Date: Fri, 25 Sep 2026 17:03:30 +0000 (+0200) Subject: Remove check that ncurses made obsolete X-Git-Url: https://git.ljiriste.work/?a=commitdiff_plain;ds=sidebyside;p=FET_sim.git Remove check that ncurses made obsolete This check was to differentiate empty line and CTRL-D. Ncurses does not work the same way (or at least wgetnstr does not) and the check is unnecessary. --- diff --git a/src/terminal.c b/src/terminal.c index c54e7bc..f66d2f4 100644 --- a/src/terminal.c +++ b/src/terminal.c @@ -55,8 +55,6 @@ int get_input(WINDOW *command_win, t_input *input) input->argc = 0; return (1); } - if (str_inp[0] == '\n') - return (1); if (str_inp[0] && str_inp[ft_strlen(str_inp) - 1] == '\n') str_inp[ft_strlen(str_inp) - 1] = '\0'; split_inp = ft_split(str_inp, " ");