NOPAGER does not make Pager::is_on() return false
The pager documentation says:
If you need to disable pager altogether set environment variable
NOPAGER
and Pager::setup() will skip initialization. The host application will continue as normal. Pager::is_on() will reflect the fact that no Pager is active.
However, when I added this to my program:
+ let mut pager = Pager::new();
+
+ pager.setup();
+
+ println!("pager.is_on(): {}", pager.is_on());
it prints "pager.is_on(): true" even when the NOPAGER environment variable is set.