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