on master help sign in
Also pass '--no-init' if version could not be retrieved
e400ebdsharkdp
src/output.rs+3
@@ -81,6 +81,9 @@ impl OutputType {
81 //
81 //
82 // See: http://www.greenwoodsoftware.com/less/news.530.html
82 // See: http://www.greenwoodsoftware.com/less/news.530.html
83 match retrieve_less_version() {
83 match retrieve_less_version() {
84+ None => {
85+ p.arg("--no-init");
86+ }
84 Some(version) if version < 530 => {
87 Some(version) if version < 530 => {
85 p.arg("--no-init");
88 p.arg("--no-init");
86 }
89 }