fix test: use builtin pager instead of less, revert to warn for all missing pagers

This commit is contained in:
Ian Maloney committed 2026-02-20 00:09:02 +00:00
1 parent 2c1a8caadd
commit 319811df01
2 files changed
+5 -6

No files matched your search

+4 -6
View File
@@ -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());
}
};
+1
View File
@@ -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()