desperately require a redesign

This commit is contained in:
lda committed 2025-01-23 16:25:30 +07:00
1 parent fb6e6dfefd
commit 7895660ba9
1 file changed
+4
+4
View File
@@ -45,6 +45,10 @@ impl AnsiStyles {
self.add_style(&style); self.add_style(&style);
self self
} }
pub fn clone_with_style(&mut self,style: Style) -> Self {
let c= self.clone();
c.style(style)
}
pub fn apply(&mut self, str: &str) { pub fn apply(&mut self, str: &str) {
self.text = str.into(); self.text = str.into();
} }