Enlightenment CVS committal Author : pfritz Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: some work on utf8 support =================================================================== RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.118 retrieving revision 1.119 diff -u -3 -r1.118 -r1.119 --- ewl_text.c 8 Sep 2006 21:49:44 -0000 1.118 +++ ewl_text.c 9 Sep 2006 00:15:21 -0000 1.119 @@ -2566,8 +2566,14 @@ /* will this push us past the end? */ if ((cur_char_idx + 1) > char_idx) { + unsigned int byte_idx; + + ewl_text_char_to_byte(t, + char_idx - cur_char_idx, + 0, &byte_idx, + NULL); evas_textblock_cursor_pos_set(cursor, - char_idx - cur_char_idx); + byte_idx); break; } else @@ -2588,8 +2594,11 @@ * current index and set that */ if ((cur_char_idx + pos) > char_idx) { - evas_textblock_cursor_pos_set(cursor, - char_idx - cur_char_idx); + unsigned int byte_idx; + + ewl_text_char_to_byte(t, char_idx - cur_char_idx, + 0, &byte_idx, NULL); + evas_textblock_cursor_pos_set(cursor, byte_idx); break; } cur_char_idx += pos; ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs