mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-30 10:06:12 +00:00
Use less binary specified in bat config for --diagnostic
This commit is contained in:
1 parent
025c5c061b
commit
f874c8e4db
2 files changed
+12
-1
No files matched your search
@@ -84,6 +84,15 @@ pub struct Config<'a> {
|
||||
pub highlighted_lines: HighlightedLineRanges,
|
||||
}
|
||||
|
||||
#[cfg(all(feature = "application", feature = "paging"))]
|
||||
pub fn get_pager_executable(config_pager: Option<&str>) -> Option<String> {
|
||||
if let Ok(Some(pager)) = crate::pager::get_pager(config_pager) {
|
||||
Some(pager.bin)
|
||||
} else {
|
||||
None
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn default_config_should_include_all_lines() {
|
||||
use crate::line_range::RangeCheckResult;
|
||||
|
||||
Reference in new issue
Block a user