liberally accept >2 -u options as per ripgrep

This commit is contained in:
Rav Chandra 2017-10-12 09:28:47 +13:00 committed by David Peter
parent 4f2d9e77b3
commit 35e5ecd492
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ fn main() {
let config = FdOptions {
case_sensitive: case_sensitive,
search_full_path: matches.is_present("full-path"),
ignore_hidden: !(matches.is_present("hidden") || matches.occurrences_of("rg-alias-hidden-ignore") == 2),
ignore_hidden: !(matches.is_present("hidden") || matches.occurrences_of("rg-alias-hidden-ignore") >= 2),
read_ignore: !(matches.is_present("no-ignore") || matches.is_present("rg-alias-hidden-ignore")),
follow_links: matches.is_present("follow"),
null_separator: matches.is_present("null_separator"),