mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
never warn for missing 'less' pager (common default)
This commit is contained in:
1 parent
00e38cd056
commit
a240aa4afd
1 file changed
+1
-1
+1
-1
@@ -105,7 +105,7 @@ impl OutputType {
|
|||||||
let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
|
let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
|
||||||
Ok(path) => path,
|
Ok(path) => path,
|
||||||
Err(_) => {
|
Err(_) => {
|
||||||
if pager.source != PagerSource::Default {
|
if pager.source != PagerSource::Default && pager.bin != "less" {
|
||||||
crate::bat_warning!(
|
crate::bat_warning!(
|
||||||
"Pager '{}' not found, outputting to stdout instead",
|
"Pager '{}' not found, outputting to stdout instead",
|
||||||
pager.bin
|
pager.bin
|
||||||
|
|||||||
Reference in new issue
Block a user