on master help sign in
Disable wrapping when `--style` is plain

closes #289

commit20b02e72b32d419fc1d9627542ea62b00b9c23f4 authorsharkdp <davidpeter@web.de> dateTue 18 Sep 2018, 20:31 (8 years ago) parent254efac
1 file changed+1−1
src/style.rs+1−1
src/style.rs+1−1
@@ -81,6 +81,6 @@ impl OutputComponents {
8181 }
8282
8383 pub fn plain(&self) -> bool {
84− self.0.is_empty()
84+ self.0.iter().all(|c| c == &OutputComponent::Plain)
8585 }
8686}