diff options
Diffstat (limited to 'src/colors.rs')
-rw-r--r-- | src/colors.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/colors.rs b/src/colors.rs index bb8ea4b..ddb3418 100644 --- a/src/colors.rs +++ b/src/colors.rs @@ -127,7 +127,9 @@ impl Colors { let mut t = term::stdout().unwrap(); self.print_color(&mut *t, color); write!(t, "{}", text).unwrap(); - t.reset().unwrap(); + self.print_wrapped(|| { + t.reset().unwrap(); + }) } fn print_color(&self, t: &mut term::StdoutTerminal, color: Option<&term::color::Color>) { |