Support "(/usr)/bin/less" as PAGER too

closes #271
This commit is contained in:
sharkdp 2018-09-05 21:10:11 +02:00
parent 96d4492d27
commit 1d9e7ac4c2
1 changed files with 1 additions and 1 deletions

View File

@ -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");