From 491158dfade2e2e34568df0ab788f4174ebd75c1 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 11 Feb 2026 14:05:31 +1100 Subject: [PATCH] Output reset_text_face: minor simplification --- src/terminal.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/terminal.rs b/src/terminal.rs index 1894e051e..ea8507838 100644 --- a/src/terminal.rs +++ b/src/terminal.rs @@ -418,9 +418,7 @@ fn maybe_flush(&mut self) { /// If you're going to immediately change other TextFace attributes /// prefer using `StyleWriter::reset_text_face()` pub(crate) fn reset_text_face(&mut self) { - use SgrTerminalCommand::ExitAttributeMode; - self.style_writer().write_command(ExitAttributeMode); - self.last = TextFace::default(); + self.style_writer().reset_text_face(); } /// Sets the fg and bg color. May be called as often as you like, since if the new color is the same