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:
+6
-4
@@ -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());
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user