netstar pushed a commit to branch master. http://git.enlightenment.org/tools/edi.git/commit/?id=d259a776a96a3a03749cc696e0b8f5ad66e4c8a4
commit d259a776a96a3a03749cc696e0b8f5ad66e4c8a4 Author: Al Poole <[email protected]> Date: Thu Sep 7 14:54:50 2017 +0100 editor: background file changes. Fix editor reload on background file change. --- src/bin/editor/edi_editor.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/editor/edi_editor.c b/src/bin/editor/edi_editor.c index 463e8db..6373bc6 100644 --- a/src/bin/editor/edi_editor.c +++ b/src/bin/editor/edi_editor.c @@ -1107,15 +1107,14 @@ void edi_editor_reload(Edi_Editor *editor) { Elm_Code *code; - const char *path; + char *path; ecore_thread_main_loop_begin(); code = elm_code_widget_code_get(editor->entry); - path = elm_code_file_path_get(code->file); + path = strdup(elm_code_file_path_get(code->file)); elm_code_file_clear(code->file); code->file = elm_code_file_open(code, path); - editor->modified = EINA_FALSE; editor->save_time = ecore_file_mod_time(path); @@ -1125,6 +1124,7 @@ edi_editor_reload(Edi_Editor *editor) editor->save_timer = NULL; } + free(path); ecore_thread_main_loop_end(); } --
