mirror of
https://github.com/MidnightCommander/mc
synced 2025-03-29 11:13:11 +03:00
Find file: fixed search for first hit.
Stop search file content if first hit found. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
fbd042889a
commit
ef699b94be
@ -693,11 +693,12 @@ search_content (Dlg_head *h, const char *directory, const char *filename)
|
||||
}
|
||||
g_free (p);
|
||||
|
||||
if (has_newline) {
|
||||
line++;
|
||||
if (found && content_first_hit_flag)
|
||||
break;
|
||||
|
||||
if (!content_first_hit_flag)
|
||||
found = FALSE;
|
||||
if (has_newline) {
|
||||
found = FALSE;
|
||||
line++;
|
||||
}
|
||||
|
||||
if ((line & 0xff) == 0) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user