From f2c93fb7f2e5b82388dd8d45d63f380906fed04e Mon Sep 17 00:00:00 2001 From: salad Date: Tue, 6 Oct 2020 17:10:33 +0200 Subject: C-b + C-f --- src/c_input.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/c_input.c') 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); -- cgit v1.2.3