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