search: fix the wrong replace behavior

Summary: fix the wrong behavior of replace logic

Test Plan:
1. launch enventor with basic template
2. open search window
3. input part keyword to the find entry
4. input some text to the replace with entry
5. press next button and find part keyword
6. press replace button again and again until all of keyword are changed
7. check it is working correctly

Reviewers: Jaehyun_Cho, NikaWhite, bowonryu, Hermet

Differential Revision: https://phab.enlightenment.org/D4299
This commit is contained in:
Taehyub Kim 2016-09-19 17:26:44 +09:00 committed by Hermet Park
parent db307a642c
commit db198e8901
1 changed files with 1 additions and 0 deletions

View File

@ -228,6 +228,7 @@ replace_proc(search_data *sd)
if (strcmp(find, utf8)) return EINA_FALSE;
const char *replace = elm_entry_entry_get(sd->en_replace);
enventor_item_text_insert(sd->it, replace);
enventor_item_select_none(sd->it);
free(utf8);
return EINA_TRUE;
}