From b6b09fc1fa8e4f70f042cfe48f26b28d798498d3 Mon Sep 17 00:00:00 2001 From: Salad Date: Fri, 2 Oct 2020 16:55:52 +0200 Subject: almost there : norme + miltiligne --- src/m_loop_next.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'src/m_loop_next.c') diff --git a/src/m_loop_next.c b/src/m_loop_next.c index 9aa7129..d7d3377 100644 --- a/src/m_loop_next.c +++ b/src/m_loop_next.c @@ -16,15 +16,17 @@ #include "m_prompt.h" #include "s_struct.h" +#include "c_init.h" static char *m_counter_line_backslash(int32_t fd, uint8_t psx, char *line, t_msh *msh) { char *counter_line; - if (fd == STDIN_FILENO) - m_prompt_psx(psx, msh); - get_next_line(fd, &counter_line); + /* if (fd == STDIN_FILENO) */ + /* m_prompt_psx(psx, msh); */ + /* get_next_line(fd, &counter_line); */ + c_init_tcaps(fd, &counter_line, psx, msh); if (counter_line[0] != 0) { line = ft_nrealloc(line, @@ -45,7 +47,8 @@ static char if (fd == STDIN_FILENO) m_prompt_psx(psx, msh); - get_next_line(fd, &counter_line); + /* get_next_line(fd, &counter_line); */ + c_init_tcaps(fd, &counter_line, psx, msh); if (counter_line[0] != 0) { line = ft_nrealloc(line, -- cgit v1.2.3