From f2c93fb7f2e5b82388dd8d45d63f380906fed04e Mon Sep 17 00:00:00 2001 From: salad Date: Tue, 6 Oct 2020 17:10:33 +0200 Subject: C-b + C-f --- src/c_init.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/c_init.c') diff --git a/src/c_init.c b/src/c_init.c index de10dfa..745fad9 100644 --- a/src/c_init.c +++ b/src/c_init.c @@ -65,9 +65,9 @@ c_read_cap(char *buf, t_caps *tcaps, t_msh *msh) { - if ((*((unsigned int *)buf)) == LEFT_K) + if (((*((unsigned int *)buf)) == LEFT_K) || ((*((unsigned int *)buf)) == CTRL_B)) return (c_key_left(ft_strlen(msh->ps[tcaps->psx]), tcaps)); - else if ((*((unsigned int *)buf)) == RIGHT_K) + else if (((*((unsigned int *)buf)) == RIGHT_K) || ((*((unsigned int *)buf)) == CTRL_F)) 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)); -- cgit v1.2.3