diff options
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); |