hermet pushed a commit to branch master.

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

commit 34919344e418cb027532ac9bfb2547f789b535da
Author: ChunEon Park <[email protected]>
Date:   Sat Aug 2 17:18:21 2014 +0900

    editor: additional descriptive messages.
    
    display a message when no text to be redoundo.
---
 src/bin/edc_editor.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/src/bin/edc_editor.c b/src/bin/edc_editor.c
index 994a4ac..aef4569 100644
--- a/src/bin/edc_editor.c
+++ b/src/bin/edc_editor.c
@@ -878,7 +878,12 @@ edit_redoundo(edit_data *ed, Eina_Bool undo)
 
    if (undo) lines = redoundo_undo(ed->rd, &changed);
    else lines = redoundo_redo(ed->rd, &changed);
-   if (!changed) return;
+   if (!changed)
+     {
+        if (undo) stats_info_msg_update("No text to be undo.");
+        else stats_info_msg_update("No text to be redo.");
+        return;
+     }
 
    if (undo) stats_info_msg_update("Undo text.");
    else stats_info_msg_update("Redo text.");

-- 


Reply via email to