From 9020af08f08c556f87939a50e8b8e207d4ee83b4 Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 18 Sep 2018 20:31:39 +0200 Subject: [PATCH] Disable wrapping when `--style` is plain closes #289 --- src/style.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/style.rs b/src/style.rs index 56b04ee17c..fe08995f24 100644 --- a/src/style.rs +++ b/src/style.rs @@ -81,6 +81,6 @@ impl OutputComponents { } pub fn plain(&self) -> bool { - self.0.is_empty() + self.0.iter().all(|c| c == &OutputComponent::Plain) } }