diff options
author | Salad <water_appreciator@protonmail.com> | 2020-10-21 18:23:04 +0200 |
---|---|---|
committer | Salad <water_appreciator@protonmail.com> | 2020-10-21 18:23:04 +0200 |
commit | a0c2a69d6c79e11c0eb25751d6c246bb164ebc31 (patch) | |
tree | c172bb09ebd52b262141aa4e5fabdbdf5e00e4f3 /src/c_keys.c | |
parent | stuff (diff) | |
download | 42-minishell-a0c2a69d6c79e11c0eb25751d6c246bb164ebc31.tar.gz 42-minishell-a0c2a69d6c79e11c0eb25751d6c246bb164ebc31.tar.bz2 42-minishell-a0c2a69d6c79e11c0eb25751d6c246bb164ebc31.tar.xz 42-minishell-a0c2a69d6c79e11c0eb25751d6c246bb164ebc31.tar.zst 42-minishell-a0c2a69d6c79e11c0eb25751d6c246bb164ebc31.zip |
makeshift
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); |