diff options
Diffstat (limited to 'src/c_keys.c')
-rw-r--r-- | src/c_keys.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/c_keys.c b/src/c_keys.c index 0c89391..e0f734c 100644 --- a/src/c_keys.c +++ b/src/c_keys.c @@ -40,10 +40,10 @@ int16_t while (--j > 0) tputs(tgetstr("up", NULL), 1, ft_putchar); tputs(tgetstr("cr", NULL), 1, ft_putchar); - while (++i <= 13) + while (++i <= plen) tputs(tgetstr("nd", NULL), 1, ft_putchar); } - else + else if (i >= 1) { while (--i >= 0) tputs(tgetstr("le", NULL), 1, ft_putchar); |