From 5cc474dbfff2dd1804a6748ab7964521e2dc0956 Mon Sep 17 00:00:00 2001 From: raster Date: Fri, 17 Oct 2008 00:04:17 +0000 Subject: [PATCH] fix another booboo in textblock for editing multiline stuff git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/evas@36732 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/canvas/evas_object_textblock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/lib/canvas/evas_object_textblock.c b/src/lib/canvas/evas_object_textblock.c index 7081ce7..038a95a 100644 --- a/src/lib/canvas/evas_object_textblock.c +++ b/src/lib/canvas/evas_object_textblock.c @@ -3179,8 +3179,9 @@ evas_textblock_cursor_char_prev(Evas_Textblock_Cursor *cur) if (cur->node->type == NODE_FORMAT) return 0; if (!cur->node->text) return 0; index = cur->pos; + if (index == 0) return 0; ch = evas_common_font_utf8_get_prev((unsigned char *)(cur->node->text), &index); - if ((ch == 0) || (index < 0)) return 0; + if (/*(ch == 0) || */(index < 0)) return 0; cur->pos = index; return 1; } -- 2.7.4