fix test: use builtin pager instead of less, revert to warn for all missing pagers

This commit is contained in:
Ian Maloney committed 2026-02-20 00:09:02 +00:00
1 parent 2c1a8caadd
commit 319811df01
2 files changed
+5 -6

No files matched your search

+4 -6
View File
@@ -105,12 +105,10 @@ impl OutputType {
let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
Ok(path) => path,
Err(_) => {
if pager.bin != "less" {
crate::bat_warning!(
"Pager '{}' not found, outputting to stdout instead",
pager.bin
);
}
crate::bat_warning!(
"Pager '{}' not found, outputting to stdout instead",
pager.bin
);
return Ok(OutputType::stdout());
}
};