summaryrefslogtreecommitdiffstats
path: root/src/m_loop_next.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/m_loop_next.c')
-rw-r--r--src/m_loop_next.c11
1 files changed, 7 insertions, 4 deletions
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,