From 474664521b2c4ddfc4fb5199d68bf799cffd17d6 Mon Sep 17 00:00:00 2001 From: arcnmx Date: Thu, 26 Oct 2023 12:33:23 -0700 Subject: [PATCH] work around bat bug when `--plain` is combined with `--pager` --- src/pager/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pager/main.rs b/src/pager/main.rs index ad7b39f..c6fc76c 100644 --- a/src/pager/main.rs +++ b/src/pager/main.rs @@ -210,7 +210,7 @@ fn dump_prefetched_lines_and_exit(lines: Vec>, filetype: &str) -> ! { if !filetype.is_empty() && filetype != "pager" { let try_spawn_bat = std::process::Command::new("bat") - .arg("--plain") + .arg("--style=plain") .arg("--paging=never") .arg("--color=always") .arg(&format!("--language={}", filetype))