aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/text.c b/text.c
index c917781..28115fd 100644
--- a/text.c
+++ b/text.c
@@ -1000,11 +1000,8 @@ static size_t lines_skip_forward(Text *txt, size_t pos, size_t lines) {
lines--;
}
- if (lines == 0) {
- if (start < it.end && *start == '\r')
- pos++;
+ if (lines == 0)
break;
- }
}
return pos;
}