From 95027e091aa9cbc67f761b1fc6ea2f4dffdd81e4 Mon Sep 17 00:00:00 2001 From: ChunEon Park Date: Thu, 5 Jun 2014 01:09:00 +0900 Subject: [PATCH] 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. --- src/bin/search.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/bin/search.c b/src/bin/search.c index 5391092..f5c7341 100644 --- a/src/bin/search.c +++ b/src/bin/search.c @@ -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