diff options
Diffstat (limited to 'src/lib/evas/canvas/evas_object_textblock.c')
-rw-r--r-- | src/lib/evas/canvas/evas_object_textblock.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/evas/canvas/evas_object_textblock.c b/src/lib/evas/canvas/evas_object_textblock.c index 4b88d82..82c66e3 100644 --- a/src/lib/evas/canvas/evas_object_textblock.c +++ b/src/lib/evas/canvas/evas_object_textblock.c | |||
@@ -9802,8 +9802,8 @@ EAPI Eina_Bool evas_textblock_cursor_at_cluster_as_single_glyph(Evas_Textblock_C | |||
9802 | { | 9802 | { |
9803 | Eina_Bool is_single_glyph = EINA_FALSE; | 9803 | Eina_Bool is_single_glyph = EINA_FALSE; |
9804 | size_t ret = _evas_textblock_cursor_cluster_pos_get(cur, forward, &is_single_glyph); | 9804 | size_t ret = _evas_textblock_cursor_cluster_pos_get(cur, forward, &is_single_glyph); |
9805 | 9805 | size_t distance = (ret > cur->pos) ? ret - cur->pos : cur->pos - ret; | |
9806 | if ((abs(ret-cur->pos) > 1) && is_single_glyph) | 9806 | if ((distance > 1) && is_single_glyph) |
9807 | { | 9807 | { |
9808 | return EINA_TRUE; | 9808 | return EINA_TRUE; |
9809 | } | 9809 | } |