hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=ec0d43a307b5311635ce0e7310535448e7a4fad6
commit ec0d43a307b5311635ce0e7310535448e7a4fad6 Author: Hermet Park <her...@hermet.pe.kr> Date: Fri Aug 19 12:57:39 2016 +0900 console: return function as soon as possible. --- src/bin/console.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/bin/console.c b/src/bin/console.c index 88dcf8b..03514d1 100644 --- a/src/bin/console.c +++ b/src/bin/console.c @@ -18,6 +18,13 @@ token_value_get(char *src, char *key_str, char end_key, int offset, char *dst) static void error_word_select(Evas_Object *console) { + Enventor_Item *it = file_mgr_focused_item_get(); + if (!it) + { + EINA_LOG_ERR("No focused item??"); + return; + } + //Convert console text including markup text to the plain text const char *markup_text = elm_entry_entry_get(console); if (!markup_text) return; @@ -42,10 +49,6 @@ error_word_select(Evas_Object *console) else goto end; - //FIXME: Need to get the file that contains errors. - Enventor_Item *it = file_mgr_focused_item_get(); - EINA_SAFETY_ON_NULL_RETURN(it); - //Find error word position enventor_item_line_goto(it, atoi(error_line)); int pos = enventor_item_cursor_pos_get(it); --