forked from enlightenment/enventor
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:
parent
db307a642c
commit
db198e8901
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue