aboutsummaryrefslogtreecommitdiff
path: root/lib/utf8.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/utf8.c')
-rw-r--r--lib/utf8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/utf8.c b/lib/utf8.c
index a25c613..3653d59 100644
--- a/lib/utf8.c
+++ b/lib/utf8.c
@@ -1545,7 +1545,7 @@ utf8_iter0(struct utf8_iterator *itr)
1545 return 1; 1545 return 1;
1546 } 1546 }
1547 n = utf8_char_width(itr->curptr); 1547 n = utf8_char_width(itr->curptr);
1548 if (n > itr->length) { 1548 if (n == 0 || n > itr->length) {
1549 itr->end = 1; 1549 itr->end = 1;
1550 itr->err = 1; 1550 itr->err = 1;
1551 return 1; 1551 return 1;

Return to:

Send suggestions and report system problems to the System administrator.