search - reset the current search position.

Reset search position because search requests syntax color partial apply
when it's window is unfocused. the selection region would be dismissed.
So reset.
This commit is contained in:
ChunEon Park 2014-06-05 01:09:00 +09:00
parent e0b2ed26aa
commit 95027e091a
1 changed files with 5 additions and 0 deletions

View File

@ -285,6 +285,11 @@ win_focused_cb(void *data, Evas_Object *obj, void *event_info)
search_data *sd = g_sd;
edit_syntax_color_full_apply(sd->ed, EINA_FALSE);
sd->syntax_color++;
/* FIXME: reset position because search requests syntax color partial apply
when it's window is unfocused. the selection region would be dismissed.
we can remove this once selection region could be recovered just right
after syntax color is applied. */
sd->pos = -1;
}
static void