Revert "Only enable --mouse when running from tmux, see #904"

This reverts commit 5f6e310152.
This commit is contained in:
sharkdp 2020-04-21 17:28:37 +02:00
parent 5f6e310152
commit 3a195be14e

View file

@ -100,16 +100,12 @@ impl OutputType {
// Passing '--mouse' allows mouse scrolling in terminals which do not
// support "fake scrolling", see https://github.com/sharkdp/bat/issues/904
// The '--mouse' argument is only supported in less 551 or higher. We do
// not enable this option everywhere because it prevents users from
// drag-selecting text without pressing shift.
if env::var_os("TMUX").is_some() {
match less_version {
Some(version) if version >= 551 => {
p.arg("--mouse");
}
_ => {}
// The '--mouse' argument is only supported in less 551 or higher.
match less_version {
Some(version) if version >= 551 => {
p.arg("--mouse");
}
_ => {}
}
} else {
p.args(args);