diff options
author | Salad <water_appreciator@protonmail.com> | 2020-10-05 17:37:55 +0200 |
---|---|---|
committer | Salad <water_appreciator@protonmail.com> | 2020-10-05 17:37:55 +0200 |
commit | f5eb08c14ccaa5e7a0e35364668ba28433459f9d (patch) | |
tree | e00b36d7c0bc787b41d07e56a3b0e08cbc002939 /src/c_keys.c | |
parent | almost there : norme + miltiligne (diff) | |
download | 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.gz 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.bz2 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.xz 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.tar.zst 42-minishell-f5eb08c14ccaa5e7a0e35364668ba28433459f9d.zip |
some changes, need MORE
Diffstat (limited to 'src/c_keys.c')
-rw-r--r-- | src/c_keys.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/c_keys.c b/src/c_keys.c index 8232521..a5b90fb 100644 --- a/src/c_keys.c +++ b/src/c_keys.c @@ -87,7 +87,7 @@ int16_t uint32_t plen, t_caps *tcaps) { - if (((tcaps->cpos + plen + 1) % (tcaps->ws.ws_col)) == 0 + if ((((tcaps->cpos + plen + 1) % (tcaps->ws.ws_col)) == 0) && tcaps->cpos < len) { tputs(tgetstr("do", NULL), 1, ft_putchar); @@ -103,12 +103,10 @@ int16_t } int16_t - c_key_left(uint32_t len, - uint32_t plen, + c_key_left(uint32_t plen, t_caps *tcaps) { int32_t pos; - (void)len; pos = -1; if (((tcaps->cpos + plen) % (tcaps->ws.ws_col)) == 0 |