summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/c_init.c7
-rw-r--r--src/c_input.c5
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"