@@ -143,7 +143,10 @@ impl App {
143 Some("always") => PagingMode::Always,
143 Some("always") => PagingMode::Always,
144 Some("never") => PagingMode::Never,
144 Some("never") => PagingMode::Never,
145 Some("auto") | _ => {
145 Some("auto") | _ => {
146+ if self.matches.occurrences_of("plain") > 1 {
147+ // If we have -pp as an option when in auto mode, the pager should be disabled.
146− if files.contains(&InputFile::StdIn) {
149+ } else if files.contains(&InputFile::StdIn) {
147 // If we are reading from stdin, only enable paging if we write to an
150 // If we are reading from stdin, only enable paging if we write to an
148 // interactive terminal and if we do not *read* from an interactive
151 // interactive terminal and if we do not *read* from an interactive
149 // terminal.
152 // terminal.