pass --no-lessopen to less by default

This commit is contained in:
Anomalocaridid 2023-09-05 19:20:17 -04:00 committed by Martin Nordholts
parent d6e11b59e7
commit ac2953c070

View File

@ -114,6 +114,10 @@ impl OutputType {
p.args(args); p.args(args);
} }
p.env("LESSCHARSET", "UTF-8"); p.env("LESSCHARSET", "UTF-8");
#[cfg(feature = "lessopen")]
// Ensures that 'less' does not preprocess input again if '$LESSOPEN' is set.
p.arg("--no-lessopen");
} else { } else {
p.args(args); p.args(args);
}; };