diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-10-26 13:15:59 +0100 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-10-26 13:15:59 +0100 |
commit | 99c6bd39430f031ea0de1244821201b4d88130ac (patch) | |
tree | 2e1bbaf042155190fdd695ba5f335dbd013a4c3a /src | |
parent | ready for merge (diff) | |
download | 42-minishell-99c6bd39430f031ea0de1244821201b4d88130ac.tar.gz 42-minishell-99c6bd39430f031ea0de1244821201b4d88130ac.tar.bz2 42-minishell-99c6bd39430f031ea0de1244821201b4d88130ac.tar.xz 42-minishell-99c6bd39430f031ea0de1244821201b4d88130ac.tar.zst 42-minishell-99c6bd39430f031ea0de1244821201b4d88130ac.zip |
reqdy for MERGE
Diffstat (limited to '')
-rw-r--r-- | src/c_init.c | 7 | ||||
-rw-r--r-- | src/c_input.c | 5 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/c_init.c b/src/c_init.c index 196a8ff..77d3023 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -12,13 +12,13 @@ #include <unistd.h> #include <stdlib.h> -#include <term.h> #include <libft.h> #include <signal.h> +#include <term.h> #include "c_init.h" -#include "c_input.h" #include "c_keys.h" +#include "c_input.h" #include "c_utils.h" #include "s_struct.h" #include "m_prompt.h" @@ -114,8 +114,7 @@ static char } else { - return ((c_read_cap(buf, line, tcaps, msh) == 130) ? - c_new_line(ft_strdup("\n"), tcaps) : NULL); + c_read_cap(buf, line, tcaps, msh); } return ((buf[0] == '\n') ? c_new_line(line, tcaps) : NULL); } diff --git a/src/c_input.c b/src/c_input.c index cab18b8..5855112 100644 --- a/src/c_input.c +++ b/src/c_input.c @@ -10,10 +10,11 @@ /* */ /* ************************************************************************** */ -#include <libft.h> -#include <term.h> #include <unistd.h> +#include <stdlib.h> +#include <libft.h> #include <signal.h> +#include <term.h> #include "c_init.h" #include "c_keys.h" |