aboutsummaryrefslogtreecommitdiffstats
path: root/src/attrs.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/attrs.rs')
-rw-r--r--src/attrs.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/attrs.rs b/src/attrs.rs
index dc46646..4b78771 100644
--- a/src/attrs.rs
+++ b/src/attrs.rs
@@ -94,13 +94,13 @@ impl Attrs {
contents: &mut Vec<u8>,
other: &Self,
) {
- let attrs = crate::term::Attrs::default();
-
if self != other && self == &Self::default() {
- write!(contents, "{}", attrs).unwrap();
+ write!(contents, "{}", crate::term::ClearAttrs::new()).unwrap();
return;
}
+ let attrs = crate::term::Attrs::default();
+
let attrs = if self.fgcolor == other.fgcolor {
attrs
} else {