diff --git a/src/output.rs b/src/output.rs index a5767bf5..7c1e6b17 100644 --- a/src/output.rs +++ b/src/output.rs @@ -105,7 +105,7 @@ impl OutputType { let resolved_path = match grep_cli::resolve_binary(&pager.bin) { Ok(path) => path, Err(_) => { - if pager.source != PagerSource::Default { + if pager.source != PagerSource::Default && pager.bin != "less" { crate::bat_warning!( "Pager '{}' not found, outputting to stdout instead", pager.bin