file_mgr: reset contexts when file focus is moved on.

We need to reset goto, search, live edit even edc navigator context
if the selected file is switched to other.
This commit is contained in:
Hermet Park 2016-07-22 13:26:51 +09:00
parent 5d1cec3e7b
commit cbb7caa834
1 changed files with 3 additions and 2 deletions

View File

@ -268,10 +268,11 @@ file_mgr_file_focus(Enventor_Item *it)
file_tab_it_select(it);
enventor_item_represent(it);
base_title_set(enventor_item_file_get(it));
base_edc_navigator_group_update();
//Reset context if the find/replace is working on.
//Reset file based contexts.
search_reset();
//Cancel if the live edit mode is turned on.
goto_close();
live_edit_cancel(EINA_FALSE);
}