editor_search: make it clearer in the code when we reset the cursor.

This commit is contained in:
Al Poole 2017-12-09 13:12:09 +00:00
parent 32196a611f
commit 95f40a7f24
1 changed files with 2 additions and 0 deletions

View File

@ -226,7 +226,9 @@ _edi_search_in_entry(Evas_Object *entry, Edi_Editor_Search *search)
// EOF reached so go to search found before cursor (first inst).
if (search->wrap && !search->term_found && _edi_search_cache_exists(search))
{
// RESET CURSOR TO BEGINNING OF WIDGET. VISIBLE WIDGET STARTS AT 1, 1.
elm_code_widget_cursor_position_set(entry, 0, 0);
elm_code_widget_selection_clear(entry);
line = elm_code_file_line_get(elm_code_widget_code_get(entry)->file, 1);
_edi_search_cache_reset(search);