summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c8
1 files changed, 1 insertions, 7 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 314baad..bf3191f 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -24,8 +24,6 @@
#include "s_struct.h"
#include "m_prompt.h"
-t_msh *c_get_struct(int mode, t_msh *msh);
-
short
c_set_term_raw(char mode)
{
@@ -91,6 +89,7 @@ static char
static char *line = NULL;
int i;
+ c_get_struct(1, &msh);
i = -1;
if (line == NULL)
if (!(line = ft_calloc(1, sizeof(char))))
@@ -108,13 +107,9 @@ static char
c_redraw_line(line, tcaps, msh);
}
else if ((*((unsigned int *)buf)) == CTRL_C)
- {
return (c_ctrl_c(&line, buf, msh));
- }
else
- {
c_read_cap(buf, line, tcaps, msh);
- }
return ((buf[0] == '\n') ? c_new_line(line, tcaps) : NULL);
}
@@ -129,7 +124,6 @@ short
m_prompt_psx(psx, msh);
ft_bzero(nread, 4);
tcaps.plen = (unsigned int)m_plen(msh->ps[psx - 1]);
- c_get_struct(1, msh);
if (!(c_get_win_size(&tcaps.ws)))
return (-1);
while (!(ft_strchr(nread, '\n')))