aboutsummaryrefslogtreecommitdiff
path: root/text.c
diff options
context:
space:
mode:
Diffstat (limited to 'text.c')
-rw-r--r--text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/text.c b/text.c
index f6e924b..b0517bb 100644
--- a/text.c
+++ b/text.c
@@ -1392,7 +1392,7 @@ bool text_iterator_byte_next(Iterator *it, char *b) {
return false;
it->text++;
/* special case for advancement to EOF */
- if (it->text == it->end && !it->piece->next->text) {
+ if (it->pos+1 == it->piece->text->size) {
it->pos++;
if (b)
*b = '\0';