mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-16 17:51:31 +01:00
pass --no-lessopen to less by default
This commit is contained in:
parent
d6e11b59e7
commit
ac2953c070
@ -114,6 +114,10 @@ impl OutputType {
|
||||
p.args(args);
|
||||
}
|
||||
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 {
|
||||
p.args(args);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user