mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
1 parent
96d4492d27
commit
1d9e7ac4c2
1 file changed
+1
-1
+1
-1
@@ -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");
|
||||||
|
|||||||
Reference in new issue
Block a user