1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-01-19 04:21:06 +00:00

Disable wrapping when --style is plain

closes #289
This commit is contained in:
sharkdp 2018-09-18 20:31:39 +02:00 committed by David Peter
parent 254efac9c2
commit 20b02e72b3

View File

@ -81,6 +81,6 @@ impl OutputComponents {
}
pub fn plain(&self) -> bool {
self.0.is_empty()
self.0.iter().all(|c| c == &OutputComponent::Plain)
}
}