diff options
author | salad <fmoenne-@student.le-101.fr> | 2020-10-21 14:16:08 +0200 |
---|---|---|
committer | salad <fmoenne-@student.le-101.fr> | 2020-10-21 14:16:08 +0200 |
commit | 01d8d9108c7b28211e32c6eb2655e883b55780ec (patch) | |
tree | 1179f19a8709c37887588a295fb929072b435cac /src/c_init.c | |
parent | globul scope (diff) | |
download | 42-minishell-01d8d9108c7b28211e32c6eb2655e883b55780ec.tar.gz 42-minishell-01d8d9108c7b28211e32c6eb2655e883b55780ec.tar.bz2 42-minishell-01d8d9108c7b28211e32c6eb2655e883b55780ec.tar.xz 42-minishell-01d8d9108c7b28211e32c6eb2655e883b55780ec.tar.zst 42-minishell-01d8d9108c7b28211e32c6eb2655e883b55780ec.zip |
stuff
Diffstat (limited to 'src/c_init.c')
-rw-r--r-- | src/c_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_init.c b/src/c_init.c index a77c326..1442fdb 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -69,7 +69,7 @@ int16_t return (c_key_right(ft_strlen(line), ft_strlen(msh->ps[tcaps->psx]), tcaps)); else if ((*((unsigned int *)buf)) == HOME_K) - return (c_home_key(tcaps)); + return (c_key_left(ft_strlen(msh->ps[tcaps->psx]), c_home_key(tcaps)); else if ((*((unsigned int *)buf)) == END_K) return (c_end_key(ft_strlen(line), ft_strlen(msh->ps[tcaps->psx]), tcaps)); |