@@ -82,13 +82,11 @@ impl OutputType {
82 p.arg("--quit-if-one-screen");
82 p.arg("--quit-if-one-screen");
85− let less_version = retrieve_less_version();
87 // Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
85 // Passing '--no-init' fixes a bug with '--quit-if-one-screen' in older
88 // versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
86 // versions of 'less'. Unfortunately, it also breaks mouse-wheel support.
90 // See: http://www.greenwoodsoftware.com/less/news.530.html
88 // See: http://www.greenwoodsoftware.com/less/news.530.html
91− match less_version {
89+ match retrieve_less_version() {
93 p.arg("--no-init");
91 p.arg("--no-init");
@@ -97,16 +95,6 @@ impl OutputType {
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 => {
111 p.args(args);
99 p.args(args);