summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-17 15:58:05 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-17 15:58:05 +0200
commit695bfa914d789345fa524395f59a7c6a96122eeb (patch)
treeb52ee269173e0745d97ff70378e975e27c45e9a8 /src/c_init.c
parentheh (diff)
download42-minishell-695bfa914d789345fa524395f59a7c6a96122eeb.tar.gz
42-minishell-695bfa914d789345fa524395f59a7c6a96122eeb.tar.bz2
42-minishell-695bfa914d789345fa524395f59a7c6a96122eeb.tar.xz
42-minishell-695bfa914d789345fa524395f59a7c6a96122eeb.tar.zst
42-minishell-695bfa914d789345fa524395f59a7c6a96122eeb.zip
multiligne prototype et plus de leaks
Diffstat (limited to '')
-rw-r--r--src/c_init.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/c_init.c b/src/c_init.c
index bb6383d..ac0c579 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -77,10 +77,7 @@ int16_t
}
if (ft_isprint(buf[0]))
{
- if (tcaps->cpos == ft_strlen(line))
- line = ft_strjoin(line, buf);
- else
- line = c_insert_char(line, buf[0], tcaps);
+ line = c_insert_char(line, buf[0], tcaps);
c_redraw_line(line, tcaps, msh);
tcaps->cpos++;
}