diff options
Diffstat (limited to 'src/utils/bat/output.rs')
| -rw-r--r-- | src/utils/bat/output.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/utils/bat/output.rs b/src/utils/bat/output.rs index a9cb1e4..747abc7 100644 --- a/src/utils/bat/output.rs +++ b/src/utils/bat/output.rs @@ -178,7 +178,7 @@ fn _make_process_from_less_path( config: &PagerCfg, ) -> Option<Command> { if let Ok(less_path) = grep_cli::resolve_binary(less_path) { - let mut p = Command::new(less_path); + let mut p = Command::new(less_path.clone()); if args.is_empty() || replace_arguments_to_less { p.args(vec!["--RAW-CONTROL-CHARS"]); @@ -189,7 +189,7 @@ fn _make_process_from_less_path( // // For newer versions (530 or 558 on Windows), we omit '--no-init' as it // is not needed anymore. - match retrieve_less_version() { + match retrieve_less_version(less_path) { None => { p.arg("--no-init"); } |
