diff --git a/legacy/evas/src/lib/canvas/evas_object_textblock.c b/legacy/evas/src/lib/canvas/evas_object_textblock.c index 83551d4feb..d40c46218b 100644 --- a/legacy/evas/src/lib/canvas/evas_object_textblock.c +++ b/legacy/evas/src/lib/canvas/evas_object_textblock.c @@ -4608,12 +4608,17 @@ evas_textblock_cursor_char_next(Evas_Textblock_Cursor *cur) { if (!evas_textblock_cursor_paragraph_next(cur)) { + /* If we already were at the end, that means we don't have + * where to go next we should return FALSE */ + if (cur->pos == (size_t) index) + return EINA_FALSE; + cur->pos = index; return EINA_TRUE; } else { - return EINA_FALSE; + return EINA_TRUE; } } }