1
0
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:
Martin Nordholts
2021-01-10 13:16:09 +01:00
parent fc30277cfa
commit dfe7a60140
2 changed files with 7 additions and 7 deletions

View File

@@ -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");