diff options
Diffstat (limited to '')
-rw-r--r-- | src/c_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/c_utils.c b/src/c_utils.c index a62e3f9..23d5007 100644 --- a/src/c_utils.c +++ b/src/c_utils.c @@ -112,6 +112,7 @@ static int16_t uint32_t i; uint32_t j; + /* ft_printf("%u%u", tcaps->nlines, tcaps->lpos); */ i = (tcaps->nlines == tcaps->lpos) ? 0 : tcaps->ws.ws_col * (tcaps->lpos - 1); j = tcaps->nlines; if (tcaps->nlines != tcaps->lpos) @@ -147,10 +148,11 @@ int16_t i = 0; j = tcaps->lpos; tputs(tgetstr("cr", NULL), 1, ft_putchar); - if ((((tcaps->cpos - 1) + ft_strlen(msh->ps[tcaps->psx])) % + if ((((tcaps->cpos + 1) + ft_strlen(msh->ps[tcaps->psx])) % tcaps->ws.ws_col) == 0) { tputs(tgetstr("sf", NULL), 1, ft_putchar); + return (1); } while (--j > 0) { |