diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_init.c | 4 |
1 files changed, 2 insertions, 2 deletions
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)); |