summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
authorsalad <fmoenne-@student.le-101.fr>2020-10-06 17:10:33 +0200
committersalad <fmoenne-@student.le-101.fr>2020-10-06 17:10:33 +0200
commitf2c93fb7f2e5b82388dd8d45d63f380906fed04e (patch)
treefb3ebc675f184cea32d2e97c2215675f5cdd6f3c /src/c_input.c
parentsome changes, need MORE (diff)
download42-minishell-f2c93fb7f2e5b82388dd8d45d63f380906fed04e.tar.gz
42-minishell-f2c93fb7f2e5b82388dd8d45d63f380906fed04e.tar.bz2
42-minishell-f2c93fb7f2e5b82388dd8d45d63f380906fed04e.tar.xz
42-minishell-f2c93fb7f2e5b82388dd8d45d63f380906fed04e.tar.zst
42-minishell-f2c93fb7f2e5b82388dd8d45d63f380906fed04e.zip
C-b + C-f
Diffstat (limited to '')
-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 19d2ef3..7eb8084 100644
--- a/src/c_input.c
+++ b/src/c_input.c
@@ -68,7 +68,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);