mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-20 20:08:58 +00: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…
x
Reference in New Issue
Block a user