mirror of
https://github.com/sharkdp/bat.git
synced 2024-12-28 09:18:53 +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.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);
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user