search - find a next word as soon as it replaced one word.

This commit is contained in:
ChunEon Park 2014-03-07 00:35:34 +09:00
parent acaca0129c
commit 94be5e3753
2 changed files with 9 additions and 5 deletions

View File

@ -99,8 +99,8 @@ static void
syntax_color_timer_update(edit_data *ed)
{
if (ed->syntax_color_timer) ecore_timer_del(ed->syntax_color_timer);
ed->syntax_color_timer = ecore_timer_add(SYNTAX_COLOR_TIME,
syntax_color_timer_cb, ed);
ed->syntax_color_timer = ecore_timer_add(SYNTAX_COLOR_TIME,
syntax_color_timer_cb, ed);
}
static void
@ -144,6 +144,7 @@ edit_changed_cb(void *data, Evas_Object *obj EINA_UNUSED, void *event_info)
}
if (!syntax_color) return;
if (elm_entry_selection_get(ed->en_edit)) return;
syntax_color_timer_update(ed);
}

View File

@ -165,8 +165,9 @@ replace_clicked_cb(void *data, Evas_Object *obj EINA_UNUSED,
void *event_info EINA_UNUSED)
{
search_data *sd = data;
replace_proc(sd);
//if (replace_proc(sd)) find_forward_proc(sd);
Eina_Bool next;
next = replace_proc(sd);
if (next) find_forward_proc(sd);
}
static void
@ -202,7 +203,9 @@ replace_key_down_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSE
Evas_Event_Key_Down *ev = event_info;
if (strcmp(ev->key, "Return")) return;
search_data *sd = data;
replace_proc(sd);
Eina_Bool next;
next = replace_proc(sd);
if (next) find_forward_proc(sd);
}
void