Enlightenment CVS committal

Author  : dj2
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_text.c 


Log Message:
- minor formatting changes
- couple of copy/paste fixes

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_text.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -u -3 -r1.139 -r1.140
--- ewl_text.c  22 Nov 2006 21:33:46 -0000      1.139
+++ ewl_text.c  22 Nov 2006 21:41:18 -0000      1.140
@@ -747,13 +747,15 @@
        if (!fmt)
        {
                fmt = ecore_dlist_goto_last(t->formatting.nodes);
-               if (fmt) {
+               if (fmt) 
+               {
                        t->formatting.current.char_idx = 
                                t->length.chars - fmt->char_len;
-                       t->formatting.current.char_idx = 
+                       t->formatting.current.byte_idx = 
                                t->length.bytes - fmt->byte_len;
                }
-               else {
+               else 
+               {
                        t->formatting.current.char_idx = 0;
                        t->formatting.current.byte_idx = 0;
                }
@@ -937,6 +939,7 @@
        {
                t->formatting.current.char_idx = 0;
                t->formatting.current.byte_idx = 0;
+
                ecore_dlist_goto_first(t->formatting.nodes);
 
                fmt = ecore_dlist_current(t->formatting.nodes);
@@ -947,6 +950,7 @@
        else if (char_pos >= t->length.chars)
        {
                fmt = ecore_dlist_goto_last(t->formatting.nodes);
+
                t->formatting.current.char_idx = 
                        t->length.chars - fmt->char_len;;
                t->formatting.current.byte_idx = 
@@ -3877,7 +3881,7 @@
                        ecore_dlist_next(t->formatting.nodes);
 
                        t->formatting.current.char_idx += new->char_len;
-                       t->formatting.current.char_idx += new->byte_len;
+                       t->formatting.current.byte_idx += new->byte_len;
 
                        fmt->tx = ewl_text_context_find(fmt->tx,
                                                context_mask, change);



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to