From e43d97dc15985258b03ade549e81ffdedce8c650 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Wed, 17 Oct 2018 21:12:23 +0200 Subject: [PATCH] Small cleanup --- src/output.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/output.rs b/src/output.rs index 206df214..43d0669e 100644 --- a/src/output.rs +++ b/src/output.rs @@ -40,7 +40,7 @@ impl OutputType { let mut process = if is_less { let mut p = Command::new(&pager_path); - if pagerflags.len() == 1 { + if args.is_empty() { p.args(vec!["--RAW-CONTROL-CHARS", "--no-init"]); if quit_if_one_screen { p.arg("--quit-if-one-screen");