jaehyun pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=52932c6e15975d8e7f4243e07db0ebd35ade41f5

commit 52932c6e15975d8e7f4243e07db0ebd35ade41f5
Author: Jaehyun Cho <[email protected]>
Date:   Thu Sep 29 07:07:15 2016 +0900

    console: Fix to reset console error message.
---
 src/bin/console.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/bin/console.c b/src/bin/console.c
index 03514d1..b33b35a 100644
--- a/src/bin/console.c
+++ b/src/bin/console.c
@@ -25,6 +25,8 @@ error_word_select(Evas_Object *console)
         return;
      }
 
+   if (elm_entry_is_empty(console)) return;
+
    //Convert console text including markup text to the plain text
    const char *markup_text = elm_entry_entry_get(console);
    if (!markup_text) return;
@@ -79,6 +81,12 @@ end:
 static void
 set_console_error_msg(Evas_Object *console, const char *src)
 {
+   if (!src || !strcmp(src, ""))
+     {
+        elm_entry_entry_set(console, NULL);
+        return;
+     }
+
    /* We cut error messages since it contains unnecessary information.
       Most of the time, first one line has a practical information. */
    const char *new_line  = "<br/>";

-- 


Reply via email to