mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
(edit_do_search): refactoring of search loop condition.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
37054596f6
commit
5bf69875dc
@ -946,10 +946,8 @@ edit_do_search (WEdit * edit)
|
|||||||
search_create_bookmark = FALSE;
|
search_create_bookmark = FALSE;
|
||||||
book_mark_flush (edit, -1);
|
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)
|
if (found == 0)
|
||||||
edit->search_start = edit->search->normal_offset;
|
edit->search_start = edit->search->normal_offset;
|
||||||
found++;
|
found++;
|
||||||
|
Loading…
Reference in New Issue
Block a user