@@ -82,13 +82,11 @@ impl OutputType {
8282 p.arg("--quit-if-one-screen");
8383 }
8484
85− let less_version = retrieve_less_version();
86−
8785 // Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
8886 // versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
8987 //
9088 // See: http://www.greenwoodsoftware.com/less/news.530.html
91− match less_version {
89+ match retrieve_less_version() {
9290 None => {
9391 p.arg("--no-init");
9492 }
@@ -97,16 +95,6 @@ impl OutputType {
9795 }
9896 _ => {}
9997 }
100−
101− // Passing '--mouse' allows mouse scrolling in terminals which do not
102− // support "fake scrolling", see https://github.com/sharkdp/bat/issues/904
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");
107− }
108− _ => {}
109− }
11098 } else {
11199 p.args(args);
112100 }