summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/search_stream.rs2
1 files changed, 1 insertions, 1 deletions
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)