mirror of
https://github.com/sharkdp/bat.git
synced 2026-10-26 20:16:33 +00:00
PagerSource: [Bat]PagerEnvVar -> EnvVar[Bat]Pager
This commit is contained in:
1 parent
fc30277cfa
commit
dfe7a60140
2 files changed
+7
-7
No files matched your search
+1
-1
@@ -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