From eea91f3f55856b9ba15d3c96096e328d1154c7b2 Mon Sep 17 00:00:00 2001 From: salad Date: Wed, 23 Sep 2020 14:44:10 +0200 Subject: norme this motherrfucker --- src/c_utils.c | 10 +++++----- src/lpos | Bin 2758 -> 0 bytes 2 files changed, 5 insertions(+), 5 deletions(-) delete mode 100644 src/lpos (limited to 'src') diff --git a/src/c_utils.c b/src/c_utils.c index 43ed94e..16ed4f0 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -162,19 +162,19 @@ int16_t { if (nlines != tcaps->lpos) { - ft_printf("%d", tcaps->cpos); while (--nlines > tcaps->lpos) tputs(tgetstr("up", NULL), 1, ft_putchar); - tputs(tgetstr("cr", NULL), 1, ft_putchar); /* cr, cpos mauvaise col, bonne ligne */ tputs(tgetstr("up", NULL), 1, ft_putchar); - while (i < (tcaps->cpos)) + tputs(tgetstr("cr", NULL), 1, ft_putchar); /* cr, cpos mauvaise col, bonne ligne */ + while (i <= (tcaps->cpos + ft_strlen(msh->ps[0]))) { tputs(tgetstr("nd", NULL), 1, ft_putchar); /* cr, cpos mauvaise col, bonne ligne */ i++; } } - while (--len > tcaps->cpos) - tputs(tgetstr("le", NULL), 1, ft_putchar); + else + while (--len > tcaps->cpos) + tputs(tgetstr("le", NULL), 1, ft_putchar); } return (ret); } diff --git a/src/lpos b/src/lpos deleted file mode 100644 index fa32915..0000000 Binary files a/src/lpos and /dev/null differ -- cgit v1.2.3