mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-23 04:46:55 +03:00
Ticket #3855: mcview: search doesn't ask about starting over
Broken in 178628e67f
.
(mcview_do_search): do search in last chunk if data source is the
growing buffer only.
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
cb1be748d8
commit
1221900262
@ -378,7 +378,8 @@ mcview_do_search (WView * view, off_t want_search_start)
|
||||
while (search_start > 0 && mcview_may_still_grow (view));
|
||||
|
||||
/* After mcview_may_still_grow (view) == FALSE we have remained last chunk. Search there. */
|
||||
if (!found && view->search->error == MC_SEARCH_E_NOTFOUND && !mcview_search_options.backwards
|
||||
if (view->growbuf_in_use && !found && view->search->error == MC_SEARCH_E_NOTFOUND
|
||||
&& !mcview_search_options.backwards
|
||||
&& mcview_find (&vsm, search_start, mcview_get_filesize (view), &match_len))
|
||||
{
|
||||
mcview_search_show_result (view, match_len);
|
||||
|
Loading…
Reference in New Issue
Block a user