diff --git a/src/search.c b/src/search.c index 0dad3c072..06015ac11 100644 --- a/src/search.c +++ b/src/search.c @@ -322,7 +322,7 @@ void search_file(const char *file_full_path) { f_len = statbuf.st_size; if (f_len == 0) { - if (opts.query[0] == '.' && opts.query_len == 1 && !opts.literal && opts.search_all_files) { + if (opts.query[0] == '.' && opts.query_len == 1 && !opts.literal) { matches_count = search_buf(buf, f_len, file_full_path); } else { log_debug("Skipping %s: file is empty.", file_full_path);