1
0
mirror of https://github.com/sharkdp/bat synced 2026-07-17 16:03:19 +00:00

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

This commit is contained in:
Ian Maloney
2026-02-20 00:09:02 +00:00
parent 2c1a8caadd
commit 319811df01
2 changed files with 5 additions and 6 deletions
+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());
}
};