summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsharkdp <davidpeter@web.de>2020-04-21 17:28:37 +0200
committersharkdp <davidpeter@web.de>2020-04-21 17:28:37 +0200
commit3a195be14e59ddf1c70fa672b530b91ded70c39f (patch)
treec603c55138ef0a7d0273f7a7851499018228597a
parent5f6e310152f45f5a90a8e4b7312e85ec284745db (diff)
Revert "Only enable --mouse when running from tmux, see #904"
-rw-r--r--src/output.rs14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/output.rs b/src/output.rs
index 41a9a50e..c8c44fbb 100644
--- a/src/output.rs
+++ b/src/output.rs
@@ -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);