Output reset_text_face: minor simplification

This commit is contained in:
Johannes Altmanninger
2026-02-11 14:05:31 +11:00
parent 7fa08e31c6
commit 491158dfad

View File

@@ -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