PagerSource: [Bat]PagerEnvVar -> EnvVar[Bat]Pager

This commit is contained in:
Martin Nordholts committed 2021-01-10 13:16:09 +01:00
1 parent fc30277cfa
commit dfe7a60140
2 files changed
+7 -7

No files matched your search

+1 -1
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");