From e3df617192b01de01adf0c7478f7346a7528bf97 Mon Sep 17 00:00:00 2001 From: Jaehyun Cho Date: Thu, 2 Mar 2017 10:14:24 +0900 Subject: [PATCH] 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; }