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 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);