summaryrefslogtreecommitdiffstats
path: root/src/c_keys.c
diff options
context:
space:
mode:
authorSalad <water_appreciator@protonmail.com>2020-10-19 17:40:44 +0200
committerSalad <water_appreciator@protonmail.com>2020-10-19 17:40:44 +0200
commit36184c4d5906043241d912390b788343f088bff1 (patch)
tree30233749e79f3cacfeddd1141454906bd375d57e /src/c_keys.c
parentFIX ALL NIG (diff)
download42-minishell-36184c4d5906043241d912390b788343f088bff1.tar.gz
42-minishell-36184c4d5906043241d912390b788343f088bff1.tar.bz2
42-minishell-36184c4d5906043241d912390b788343f088bff1.tar.xz
42-minishell-36184c4d5906043241d912390b788343f088bff1.tar.zst
42-minishell-36184c4d5906043241d912390b788343f088bff1.zip
norme + backslash + delchar + init --> gnl
Diffstat (limited to '')
-rw-r--r--src/c_keys.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/c_keys.c b/src/c_keys.c
index 5a036e6..cd3e6f1 100644
--- a/src/c_keys.c
+++ b/src/c_keys.c
@@ -18,9 +18,7 @@
#include "m_prompt.h"
int16_t
- c_ctrl_l(char *line,
- t_caps *tcaps,
- t_msh *msh)
+ c_ctrl_l(char *line, t_caps *tcaps, t_msh *msh)
{
tputs(tgetstr("cl", NULL), 1, ft_putchar);
m_prompt_psx(1, msh);
@@ -85,9 +83,7 @@ int16_t
}
int16_t
- c_key_right(uint32_t len,
- uint32_t plen,
- t_caps *tcaps)
+ c_key_right(uint32_t len, uint32_t plen, t_caps *tcaps)
{
if ((((tcaps->cpos + plen + 1) % (tcaps->ws.ws_col)) == 0)
&& tcaps->cpos < len)
@@ -106,8 +102,7 @@ int16_t
}
int16_t
- c_key_left(uint32_t plen,
- t_caps *tcaps)
+ c_key_left(uint32_t plen, t_caps *tcaps)
{
int32_t pos;