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

never warn for missing 'less' pager (common default)

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