diff --git a/src/args.rs b/src/args.rs index 9e941a7ba..cc3f739fe 100644 --- a/src/args.rs +++ b/src/args.rs @@ -532,6 +532,7 @@ impl<'a> ArgMatches<'a> { false } else { self.is_present("with-filename") + || self.is_present("vimgrep") || paths.len() > 1 || paths.get(0).map_or(false, |p| p.is_dir()) }