hermet pushed a commit to branch master.

http://git.enlightenment.org/tools/enventor.git/commit/?id=95027e091aa9cbc67f761b1fc6ea2f4dffdd81e4

commit 95027e091aa9cbc67f761b1fc6ea2f4dffdd81e4
Author: ChunEon Park <her...@hermet.pe.kr>
Date:   Thu Jun 5 01:09:00 2014 +0900

    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

-- 


Reply via email to