mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
1 parent
f4202361b4
commit
986d0e9777
3 files changed
+31
No files matched your search
@@ -66,6 +66,11 @@ impl OutputType {
|
||||
return Err(ErrorKind::InvalidPagerValueBat.into());
|
||||
}
|
||||
|
||||
if pager_path.file_stem() == Some(&OsString::from("most")) && source == PagerSource::PagerEnvVar {
|
||||
eprintln!("WARNING: Ignoring PAGER=\"{}\": Coloring not supported. Override with BAT_PAGER=\"{}\" or --pager \"{}\"", pager, pager, pager);
|
||||
return Ok(OutputType::stdout());
|
||||
}
|
||||
|
||||
let is_less = pager_path.file_stem() == Some(&OsString::from("less"));
|
||||
|
||||
let mut process = if is_less {
|
||||
|
||||
Reference in new issue
Block a user