(edit_do_search): refactoring of search loop condition.

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2012-08-08 14:41:06 +04:00
parent 37054596f6
commit 5bf69875dc
1 changed files with 1 additions and 3 deletions

View File

@ -946,10 +946,8 @@ edit_do_search (WEdit * edit)
search_create_bookmark = FALSE;
book_mark_flush (edit, -1);
while (TRUE)
while (mc_search_run (edit->search, (void *) edit, q, edit->last_byte, &len))
{
if (!mc_search_run (edit->search, (void *) edit, q, edit->last_byte, &len))
break;
if (found == 0)
edit->search_start = edit->search->normal_offset;
found++;