From 20b02e72b32d419fc1d9627542ea62b00b9c23f4 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 56b04ee1..fe08995f 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) } }