summaryrefslogtreecommitdiffstats
path: root/src/c_input.c
diff options
context:
space:
mode:
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);