on master help sign in
Revert "Only enable --mouse when running from tmux, see #904"

This reverts commit 5f6e310152f45f5a90a8e4b7312e85ec284745db.

commit3a195be14e59ddf1c70fa672b530b91ded70c39f authorsharkdp <davidpeter@web.de> dateTue 21 Apr 2020, 17:28 (7 years ago) parent5f6e310
1 file changed+5−9
src/output.rs+5−9
src/output.rs+5−9
@@ -100,16 +100,12 @@ impl OutputType {
100100
101101 // Passing '--mouse' allows mouse scrolling in terminals which do not
102102 // support "fake scrolling", see https://github.com/sharkdp/bat/issues/904
103− // The '--mouse' argument is only supported in less 551 or higher. We do
104− // not enable this option everywhere because it prevents users from
105− // drag-selecting text without pressing shift.
106− if env::var_os("TMUX").is_some() {
107− match less_version {
108− Some(version) if version >= 551 => {
109− p.arg("--mouse");
110− }
111− _ => {}
103+ // The '--mouse' argument is only supported in less 551 or higher.
104+ match less_version {
105+ Some(version) if version >= 551 => {
106+ p.arg("--mouse");
112107 }
108+ _ => {}
113109 }
114110 } else {
115111 p.args(args);