jaehyun pushed a commit to branch master.

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

commit e3df617192b01de01adf0c7478f7346a7528bf97
Author: Jaehyun Cho <jae_hyun....@samsung.com>
Date:   Thu Mar 2 10:14:24 2017 +0900

    search: Fix to move search position in forward search
    
    Previously, if the searched word was located position 0, then the first
    search worked but the next search did not work. Because the search
    position was still 0.
    
    Now, the search position moves to the end of the searched word if the
    search type is forward.
---
 src/bin/search.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/bin/search.c b/src/bin/search.c
index 6cd821c..b66f5d9 100644
--- a/src/bin/search.c
+++ b/src/bin/search.c
@@ -107,6 +107,11 @@ selection_region_anim_cb(void *data)
    search_data *sd = data;
    enventor_item_select_region_set(sd->it, sd->pos,
                                    (sd->pos + sd->len));
+
+   //Move search position to the end of the word if search type is forward
+   if (sd->forward)
+     sd->pos += sd->len;
+
    return ECORE_CALLBACK_CANCEL;
 }
 

-- 


Reply via email to