@@ -229,6 +229,8 @@ fn run() -> Result<bool> {
230 if app.matches.is_present("diagnostic") {
230 if app.matches.is_present("diagnostic") {
231 use bugreport::{bugreport, collector::*, format::Markdown};
231 use bugreport::{bugreport, collector::*, format::Markdown};
232+ let pager = bat::config::get_pager_executable(app.matches.value_of("pager"))
233+ .unwrap_or("less".to_owned()); // FIXME: Avoid non-canonical path to "less".
233 bugreport!()
235 bugreport!()
234 .info(SoftwareVersion::default())
236 .info(SoftwareVersion::default())
@@ -252,7 +254,7 @@ fn run() -> Result<bool> {
253 .info(FileContent::new("Config file", config_file()))
255 .info(FileContent::new("Config file", config_file()))
254 .info(CompileTimeInformation::default())
256 .info(CompileTimeInformation::default())
255− .info(CommandOutput::new("Less version", "less", &["--version"]))
257+ .info(CommandOutput::new("Less version", pager, &["--version"]))
256 .print::<Markdown>();
258 .print::<Markdown>();
258 return Ok(true);
260 return Ok(true);