From 3ab54c00fd08f02f246488629442866c8eb604b1 Mon Sep 17 00:00:00 2001 From: salad Date: Fri, 18 Sep 2020 14:51:08 +0200 Subject: full bugged, mais full features --- src/c_utils.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/c_utils.c') 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 #include #include -#include #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); -- cgit v1.2.3