Enlightenment CVS committal

Author  : pfritz
Project : e17
Module  : libs/ewl

Dir     : e17/libs/ewl/src/lib


Modified Files:
        ewl_entry.c 


Log Message:
bug 130

===================================================================
RCS file: /cvs/e/e17/libs/ewl/src/lib/ewl_entry.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -u -3 -r1.75 -r1.76
--- ewl_entry.c 4 Jun 2007 18:37:34 -0000       1.75
+++ ewl_entry.c 29 Jul 2007 00:02:08 -0000      1.76
@@ -717,6 +717,10 @@
                DRETURN(DLEVEL_STABLE); 
 
        pos1 = ewl_entry_cursor_position_get(EWL_ENTRY_CURSOR(e->cursor));
+       /* we cannot delete anything if we are at the beginning of the text */
+       if (pos1 == 0)
+               DRETURN(DLEVEL_STABLE);
+
        ewl_entry_cursor_position_set(EWL_ENTRY_CURSOR(e->cursor), pos1 - 1);
        ewl_text_text_delete(EWL_TEXT(e), 1);
 



-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >>  http://get.splunk.com/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to