mirror of
https://github.com/sharkdp/bat
synced 2026-07-15 15:43:19 +00:00
fix test: use builtin pager instead of less, revert to warn for all missing pagers
This commit is contained in:
+4
-6
@@ -105,12 +105,10 @@ impl OutputType {
|
||||
let resolved_path = match grep_cli::resolve_binary(&pager.bin) {
|
||||
Ok(path) => path,
|
||||
Err(_) => {
|
||||
if pager.bin != "less" {
|
||||
crate::bat_warning!(
|
||||
"Pager '{}' not found, outputting to stdout instead",
|
||||
pager.bin
|
||||
);
|
||||
}
|
||||
crate::bat_warning!(
|
||||
"Pager '{}' not found, outputting to stdout instead",
|
||||
pager.bin
|
||||
);
|
||||
return Ok(OutputType::stdout());
|
||||
}
|
||||
};
|
||||
|
||||
@@ -1458,6 +1458,7 @@ fn env_var_bat_paging() {
|
||||
fn basic_set_terminal_title() {
|
||||
bat()
|
||||
.arg("--paging=always")
|
||||
.arg("--pager=builtin")
|
||||
.arg("--set-terminal-title")
|
||||
.arg("test.txt")
|
||||
.assert()
|
||||
|
||||
Reference in New Issue
Block a user