Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/ewl
Dir : e17/libs/ewl/src/lib Modified Files: ewl_text.c Log Message: Correct for lack of \n on the end of a line. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/ewl/src/lib/ewl_text.c,v retrieving revision 1.77 retrieving revision 1.78 diff -u -3 -r1.77 -r1.78 --- ewl_text.c 4 Dec 2005 18:03:18 -0000 1.77 +++ ewl_text.c 5 Dec 2005 06:37:49 -0000 1.78 @@ -262,11 +262,16 @@ evas_textblock_cursor_line_first(cursor); else { + const char *txt; evas_textblock_cursor_line_last(cursor); /* we want to be past the last char so we * need to increment this by 1 to begin */ - idx += 1; + txt = evas_textblock_cursor_node_format_get(cursor); + + /* Increment if we're on the last line */ + if (!txt || (strcmp(txt, "\n"))) + idx ++; } } else ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs