From 01d8d9108c7b28211e32c6eb2655e883b55780ec Mon Sep 17 00:00:00 2001
From: salad <fmoenne-@student.le-101.fr>
Date: Wed, 21 Oct 2020 14:16:08 +0200
Subject: stuff

---
 src/c_init.c | 2 +-
 src/c_keys.c | 2 +-
 src/c_keys.h | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

(limited to 'src')

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);
 
-- 
cgit v1.2.3