summaryrefslogtreecommitdiffstats
path: root/src/style.rs
diff options
context:
space:
mode:
authoreth-p <32112321+eth-p@users.noreply.github.com>2018-09-07 10:51:47 -0700
committerDavid Peter <sharkdp@users.noreply.github.com>2018-09-08 09:52:21 +0200
commitd8030626f89d1a98342eda683b875bfe7f8fac0d (patch)
treeef8340352844951277825839dc35f18c569fbe54 /src/style.rs
parentfb61aa4f60096eebd59b48367465cd88279d3180 (diff)
Automatically disable wrapping when style is plain.
Diffstat (limited to 'src/style.rs')
-rw-r--r--src/style.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/style.rs b/src/style.rs
index 4c36265d..efd83697 100644
--- a/src/style.rs
+++ b/src/style.rs
@@ -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()
+ }
}