mirror of
https://github.com/sharkdp/bat.git
synced 2025-09-17 02:32:26 +01:00
PagerSource: [Bat]PagerEnvVar -> EnvVar[Bat]Pager
This commit is contained in:
@@ -73,7 +73,7 @@ impl OutputType {
|
||||
//
|
||||
// We only do this for PAGER (as it is not specific to 'bat'), not for BAT_PAGER
|
||||
// or bats '--pager' command line option.
|
||||
let replace_arguments_to_less = pager.source == PagerSource::PagerEnvVar;
|
||||
let replace_arguments_to_less = pager.source == PagerSource::EnvVarPager;
|
||||
|
||||
if args.is_empty() || replace_arguments_to_less {
|
||||
p.arg("--RAW-CONTROL-CHARS");
|
||||
|
Reference in New Issue
Block a user