summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
authorSalad <water_appreciator@protonmail.com>2020-10-19 17:32:53 +0200
committerSalad <water_appreciator@protonmail.com>2020-10-19 17:32:53 +0200
commit35ea2d4a8a529c8680891cd1aae8cfe0088dd284 (patch)
tree465f5be4e8900152151f384adeacb188e0b9c03a /src/c_input.c
parentqsd (diff)
download42-minishell-35ea2d4a8a529c8680891cd1aae8cfe0088dd284.tar.gz
42-minishell-35ea2d4a8a529c8680891cd1aae8cfe0088dd284.tar.bz2
42-minishell-35ea2d4a8a529c8680891cd1aae8cfe0088dd284.tar.xz
42-minishell-35ea2d4a8a529c8680891cd1aae8cfe0088dd284.tar.zst
42-minishell-35ea2d4a8a529c8680891cd1aae8cfe0088dd284.zip
FIX ALL NIG
Diffstat (limited to 'src/c_input.c')
-rw-r--r--src/c_input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/c_input.c b/src/c_input.c
index 1c14342..1cc9ce0 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -69,7 +69,7 @@ c_get_line_num(char *line,
while (it < len)
{
it += (it == 0) ? (tcaps->ws.ws_col - plen) : tcaps->ws.ws_col;
- tcaps->lpos += (it <= (cpos)) ? 1 : 0;
+ tcaps->lpos += (it < (cpos)) ? 1 : 0;
line_num++;
}
return (line_num);