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 | |
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 '')
-rw-r--r-- | src/c_init.c | 2 | ||||
-rw-r--r-- | src/c_keys.c | 2 | ||||
-rw-r--r-- | src/c_keys.h | 2 |
3 files changed, 3 insertions, 3 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)); diff --git a/src/c_keys.c b/src/c_keys.c index 78b3d8f..0c89391 100644 --- a/src/c_keys.c +++ b/src/c_keys.c @@ -27,7 +27,7 @@ int16_t } int16_t - c_home_key(t_caps *tcaps) + c_home_key(uint32_t plen, t_caps *tcaps) { uint32_t i; int16_t j; diff --git a/src/c_keys.h b/src/c_keys.h index 6a4924d..12b17ee 100644 --- a/src/c_keys.h +++ b/src/c_keys.h @@ -15,7 +15,7 @@ int16_t c_key_right(uint32_t len, uint32_t plen, t_caps *tcaps); int16_t c_key_left(uint32_t plen, t_caps *tcaps); -int16_t c_home_key(t_caps *tcaps); +int16_t c_home_key(uint32_t plen, t_caps *tcaps); int16_t c_end_key(uint16_t size, uint32_t plen, t_caps *tcaps); int16_t c_ctrl_l(char *line, t_caps *tcaps, t_msh *msh); |