1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-04 12:22:28 +01:00

Automatically disable wrapping when style is plain.

This commit is contained in:
eth-p
2018-09-07 10:51:47 -07:00
committed by David Peter
parent fb61aa4f60
commit d8030626f8
2 changed files with 17 additions and 11 deletions

View File

@@ -78,4 +78,8 @@ impl OutputComponents {
pub fn numbers(&self) -> bool {
self.0.contains(&OutputComponent::Numbers)
}
pub fn plain(&self) -> bool {
self.0.is_empty()
}
}