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

only warn for explicitly configured pagers, not defaults

This commit is contained in:
Ian Maloney
2026-02-19 22:01:58 +00:00
parent 335eff51f3
commit 00e38cd056
+6 -4
View File
@@ -105,10 +105,12 @@ impl OutputType {
let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
Ok(path) => path,
Err(_) => {
crate::bat_warning!(
"Pager '{}' not found, outputting to stdout instead",
pager.bin
);
if pager.source != PagerSource::Default {
crate::bat_warning!(
"Pager '{}' not found, outputting to stdout instead",
pager.bin
);
}
return Ok(OutputType::stdout());
}
};