aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--text-iterator.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text-iterator.c b/text-iterator.c
index a70a5a9..e080ca5 100644
--- a/text-iterator.c
+++ b/text-iterator.c
@@ -27,7 +27,7 @@ bool text_iterator_byte_next(Iterator *it, char *b) {
if (!text_iterator_has_next(it))
return false;
bool eof = true;
- if (it->text < it->end) {
+ if (it->text != it->end) {
it->text++;
it->pos++;
eof = false;