diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-09-17 15:58:05 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-09-17 15:58:05 +0200 |
commit | 695bfa914d789345fa524395f59a7c6a96122eeb (patch) | |
tree | b52ee269173e0745d97ff70378e975e27c45e9a8 /src/c_init.c | |
parent | heh (diff) | |
download | 42-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.c | 5 |
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++; } |