Feat: text selection using mouse

This commit is contained in:
2026-02-25 23:20:42 +01:00
parent 03c8187359
commit aa607a78d8
5 changed files with 125 additions and 6 deletions

View File

@@ -99,6 +99,7 @@ pub struct EditorContext {
pub stack_cache: RefCell<Option<StackCache>>,
pub target: EditorTarget,
pub steps_per_page: Cell<usize>,
pub mouse_selecting: bool,
}
#[derive(Clone)]
@@ -150,6 +151,7 @@ impl Default for EditorContext {
stack_cache: RefCell::new(None),
target: EditorTarget::default(),
steps_per_page: Cell::new(32),
mouse_selecting: false,
}
}
}