mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-12 07:58:52 +00:00
Revert "Only enable --mouse when running from tmux, see #904"
This reverts commit 5f6e310152f45f5a90a8e4b7312e85ec284745db.
This commit is contained in:
parent
5f6e310152
commit
3a195be14e
@ -100,17 +100,13 @@ impl OutputType {
|
|||||||
|
|
||||||
// Passing '--mouse' allows mouse scrolling in terminals which do not
|
// Passing '--mouse' allows mouse scrolling in terminals which do not
|
||||||
// support "fake scrolling", see https://github.com/sharkdp/bat/issues/904
|
// support "fake scrolling", see https://github.com/sharkdp/bat/issues/904
|
||||||
// The '--mouse' argument is only supported in less 551 or higher. We do
|
// The '--mouse' argument is only supported in less 551 or higher.
|
||||||
// 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 {
|
match less_version {
|
||||||
Some(version) if version >= 551 => {
|
Some(version) if version >= 551 => {
|
||||||
p.arg("--mouse");
|
p.arg("--mouse");
|
||||||
}
|
}
|
||||||
_ => {}
|
_ => {}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
} else {
|
} else {
|
||||||
p.args(args);
|
p.args(args);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user