simplify: just never warn for less (universal default)

This commit is contained in:
Ian Maloney committed 2026-02-19 22:49:02 +00:00
1 parent a240aa4afd
commit 2c1a8caadd
1 file changed
+1 -1
+1 -1
View File
@@ -105,7 +105,7 @@ impl OutputType {
let resolved_path = match grep_cli::resolve_binary(&pager.bin) { let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
Ok(path) => path, Ok(path) => path,
Err(_) => { Err(_) => {
if pager.source != PagerSource::Default && pager.bin != "less" { if pager.bin != "less" {
crate::bat_warning!( crate::bat_warning!(
"Pager '{}' not found, outputting to stdout instead", "Pager '{}' not found, outputting to stdout instead",
pager.bin pager.bin