diff --git a/src/search_stream.rs b/src/search_stream.rs index a7366295..16302922 100644 --- a/src/search_stream.rs +++ b/src/search_stream.rs @@ -307,7 +307,7 @@ impl<'a, R: io::Read, W: WriteColor> Searcher<'a, R, W> { } else if self.opts.files_with_matches { self.printer.path(self.path); } - } else if self.match_count == 0 && self.opts.files_without_matches { + } else if self.opts.files_without_matches { self.printer.path(self.path); } Ok(self.match_count)