@@ -8,10 +8,10 @@ pub(crate) enum PagerSource {
88 Config,
99
1010 /// From the env var BAT_PAGER
11− BatPagerEnvVar,
11+ EnvVarBatPager,
1212
1313 /// From the env var PAGER
14− PagerEnvVar,
14+ EnvVarPager,
1515
1616 /// No pager was specified, default is used
1717 Default,
@@ -93,8 +93,8 @@ pub(crate) fn get_pager(config_pager: Option<&str>) -> Result<Option<Pager>, Par
9393
9494 let (cmd, source) = match (config_pager, &bat_pager, &pager) {
9595 (Some(config_pager), _, _) => (config_pager, PagerSource::Config),
96− (_, Ok(bat_pager), _) => (bat_pager.as_str(), PagerSource::BatPagerEnvVar),
97− (_, _, Ok(pager)) => (pager.as_str(), PagerSource::PagerEnvVar),
96+ (_, Ok(bat_pager), _) => (bat_pager.as_str(), PagerSource::EnvVarBatPager),
97+ (_, _, Ok(pager)) => (pager.as_str(), PagerSource::EnvVarPager),
9898 _ => ("less", PagerSource::Default),
9999 };
100100
@@ -106,11 +106,11 @@ pub(crate) fn get_pager(config_pager: Option<&str>) -> Result<Option<Pager>, Par
106106 // 'more' and 'most' does not supports colors; automatically use 'less' instead
107107 // if the problematic pager came from the generic PAGER env var
108108 let no_color_support = kind == PagerKind::More || kind == PagerKind::Most;
109− let use_less_instead = no_color_support && source == PagerSource::PagerEnvVar;
109+ let use_less_instead = no_color_support && source == PagerSource::EnvVarPager;
110110
111111 Ok(Some(if use_less_instead {
112112 let no_args = vec![];
113− Pager::new("less", &no_args, PagerKind::Less, PagerSource::PagerEnvVar)
113+ Pager::new("less", &no_args, PagerKind::Less, PagerSource::EnvVarPager)
114114 } else {
115115 Pager::new(bin, args, kind, source)
116116 }))