mirror of
https://github.com/sharkdp/bat.git
synced 2025-01-31 10:11:07 +00:00
parent
96d4492d27
commit
1d9e7ac4c2
@ -26,7 +26,7 @@ impl OutputType {
|
||||
.or_else(|_| env::var("PAGER"))
|
||||
.unwrap_or(String::from("less"));
|
||||
|
||||
let mut process = if pager == "less" {
|
||||
let mut process = if pager == "less" || pager.ends_with("/less") {
|
||||
let mut args = vec!["--RAW-CONTROL-CHARS", "--no-init"];
|
||||
if quit_if_one_screen {
|
||||
args.push("--quit-if-one-screen");
|
||||
|
Loading…
x
Reference in New Issue
Block a user