summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorSalad <water_appreciator@protonmail.com>2020-10-05 17:37:55 +0200
committerSalad <water_appreciator@protonmail.com>2020-10-05 17:37:55 +0200
commitf5eb08c14ccaa5e7a0e35364668ba28433459f9d (patch)
treee00b36d7c0bc787b41d07e56a3b0e08cbc002939 /src/c_init.c
parentalmost there : norme + miltiligne (diff)
download42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.gz
42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.bz2
42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.xz
42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.zst
42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.zip
some changes, need MORE
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 66e0541..de10dfa 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -66,7 +66,7 @@ c_read_cap(char *buf,
t_msh *msh)
{
if ((*((unsigned int *)buf)) == LEFT_K)
- return (c_key_left(ft_strlen(line), ft_strlen(msh->ps[tcaps->psx]), tcaps));
+ return (c_key_left(ft_strlen(msh->ps[tcaps->psx]), tcaps));
else if ((*((unsigned int *)buf)) == RIGHT_K)
return (c_key_right(ft_strlen(line), ft_strlen(msh->ps[tcaps->psx]), tcaps));
else if ((*((unsigned int *)buf)) == HOME_K)
@@ -106,7 +106,7 @@ static char
else
c_read_cap(buf, line, tcaps, msh);
if (buf[0] == '\n')
- return (c_new_line(line, tcaps, msh));
+ return (c_new_line(line, tcaps));
return (NULL);
}