This commit is contained in:
iris committed 2025-11-15 02:22:50 -05:00
1 parent 8896c64445
commit 2914d7968f
1 file changed
+10
+10
View File
@@ -20,6 +20,16 @@ impl TextEdit {
self.align, self.align,
) )
} }
pub fn content(&self) -> String {
self.buf
.lines
.iter()
.map(|l| l.text())
// why is this needed?? what??
.collect::<Vec<_>>()
.join("\n")
}
} }
impl Widget for TextEdit { impl Widget for TextEdit {