summaryrefslogtreecommitdiffstats
path: root/src/c_init.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-09-08 14:21:41 +0200
committersalad <fmoenne-@student.le-101.fr>2020-09-08 14:21:41 +0200
commit112487d69261e508c12a2b761a83a287355e2c0d (patch)
tree2921d3920e4f90accf2eb09160480a0886c8cb96 /src/c_init.c
parentdelchar in progress (diff)
download42-minishell-112487d69261e508c12a2b761a83a287355e2c0d.tar.gz
42-minishell-112487d69261e508c12a2b761a83a287355e2c0d.tar.bz2
42-minishell-112487d69261e508c12a2b761a83a287355e2c0d.tar.xz
42-minishell-112487d69261e508c12a2b761a83a287355e2c0d.tar.zst
42-minishell-112487d69261e508c12a2b761a83a287355e2c0d.zip
on god?
Diffstat (limited to 'src/c_init.c')
-rw-r--r--src/c_init.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/c_init.c b/src/c_init.c
index 0044f98..454e70a 100644
--- a/src/c_init.c
+++ b/src/c_init.c
@@ -134,6 +134,7 @@ int16_t
else if (strncmp(buf, tgetstr("kb", NULL), ft_strlen(tgetstr("kb", NULL))) == 0)
{
line = c_delchar(line, tcaps->cpos);
+ tcaps->cpos -= 1;
tputs(tgetstr("le", NULL), 1, ft_putchar);
tputs(tgetstr("dc", NULL), 1, ft_putchar);
return (1);