hermet pushed a commit to branch master. http://git.enlightenment.org/tools/enventor.git/commit/?id=4468f9283c99f454ab455694fc1098ebbc42fc56
commit 4468f9283c99f454ab455694fc1098ebbc42fc56 Author: Hermet Park <her...@hermet.pe.kr> Date: Mon Aug 1 19:28:41 2016 +0900 file_mgr: compare file pathes precisely. Actually, it needs to compare realpath for files to confirm to newly open or not. --- src/bin/file_mgr.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/bin/file_mgr.c b/src/bin/file_mgr.c index 60280b2..36da7f6 100644 --- a/src/bin/file_mgr.c +++ b/src/bin/file_mgr.c @@ -350,8 +350,6 @@ file_mgr_file_open(const char *file_path) if (!(eina_str_has_extension(file_path, "edc") || eina_str_has_extension(file_path, "h"))) return EINA_FALSE; - unsigned int selected_file_len = strlen(file_path); - Enventor_Item *eit; const char *it_file_path; @@ -366,7 +364,8 @@ file_mgr_file_open(const char *file_path) return EINA_FALSE; } //Ok, This selected file is already openend, let's activate the item. - if (!strcmp(file_path, ecore_file_file_get(it_file_path))) + if (!strcmp(ecore_file_realpath(file_path), + ecore_file_realpath(it_file_path))) { file_mgr_file_focus(eit); return EINA_TRUE; @@ -382,11 +381,9 @@ file_mgr_file_open(const char *file_path) it_file_path = enventor_item_file_get(eit); if (!it_file_path) continue; - //Let's check if the file is already opened. - if (selected_file_len != strlen(it_file_path)) continue; - //Ok, This selected file is already openend, let's activate the item. - if (!strcmp(file_path, it_file_path)) + if (!strcmp(ecore_file_realpath(file_path), + ecore_file_realpath(it_file_path))) { file_mgr_file_focus(eit); return EINA_TRUE; --