idek bruh

This commit is contained in:
2025-11-22 00:44:38 -05:00
parent 1cec56e847
commit 1c6fc99f57
4 changed files with 20 additions and 14 deletions

View File

@@ -14,13 +14,6 @@ pub struct TextEdit {
}
impl TextEdit {
pub fn region(&self) -> UiRegion {
self.tex()
.map(|t| t.size)
.unwrap_or(Vec2::ZERO)
.align(self.align)
}
pub fn select_content(&self, start: Cursor, end: Cursor) -> String {
let (start, end) = sort_cursors(start, end);
let mut iter = self.buf.lines.iter().skip(start.line);