summaryrefslogtreecommitdiffstats
path: root/src/c_utils.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/c_utils.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/c_utils.c b/src/c_utils.c
index 1890192..f96d0b3 100644
--- a/src/c_utils.c
+++ b/src/c_utils.c
@@ -15,7 +15,6 @@
#include <stdlib.h>
#include <term.h>
#include <unistd.h>
-#include <sys/ioctl.h>
#include "c_init.h"
#include "m_prompt.h"
@@ -25,10 +24,11 @@
/*
** TODO:
** MULTILIGHNE
+** FLECHES UP DOWN
** quotes
-** C-c
+** unknown chars
+** C-c globul pid
** NORME
-** leaks on line ??? GONE ?
*/
uint16_t
@@ -138,7 +138,7 @@ int16_t
tputs(tgetstr("cr", NULL), 1, ft_putchar);
if (len >= (tcaps->ws.ws_col - ft_strlen(msh->ps[0])))
{
- if (len == (tcaps->ws.ws_col - ft_strlen(msh->ps[0])))
+ if (len % (tcaps->ws.ws_col - ft_strlen(msh->ps[0])) == 0)
{
tputs(tgetstr("sf", NULL), 1, ft_putchar);
return (1);