diff --git a/src/output.rs b/src/output.rs
index 539ea645..c79535c3 100644
--- a/src/output.rs
+++ b/src/output.rs
@@ -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");
diff --git a/src/pager.rs b/src/pager.rs
index 947f522d..c99d2994 100644
--- a/src/pager.rs
+++ b/src/pager.rs
@@ -8,10 +8,10 @@ pub(crate) enum PagerSource {
Config,
/// From the env var BAT_PAGER
- BatPagerEnvVar,
+ EnvVarBatPager,
/// From the env var PAGER
- PagerEnvVar,
+ EnvVarPager,
/// No pager was specified, default is used
Default,
@@ -93,8 +93,8 @@ pub(crate) fn get_pager(config_pager: Option<&str>) -> Result