nikawhite pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=aa8dc3a8dd7059eaaeddd495392a8e35f4d3f220

commit aa8dc3a8dd7059eaaeddd495392a8e35f4d3f220
Author: Mykyta Biliavskyi <m.biliavs...@samsung.com>
Date:   Wed Apr 6 15:05:21 2016 +0900

    Undo/redo: correct work with unicode symbols.
    
    @fix T3420
---
 src/lib/redoundo.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/redoundo.c b/src/lib/redoundo.c
index a8061ee..30f49ca 100644
--- a/src/lib/redoundo.c
+++ b/src/lib/redoundo.c
@@ -148,7 +148,7 @@ entry_changed_user_cb(void *data, Evas_Object *obj 
EINA_UNUSED,
         if (info->change.insert.plain_length == 0) goto nochange;
         diff->text = eina_stringshare_add(info->change.insert.content);
         char *utf8 = evas_textblock_text_markup_to_utf8(NULL, diff->text);
-        diff->length = strlen(utf8);
+        diff->length = info->change.insert.plain_length;
         diff->cursor_pos = info->change.insert.pos;
         diff->action = EINA_TRUE;
         free(utf8);

-- 


Reply via email to