Add selection

This commit is contained in:
Jeremy Soller 2022-10-19 10:12:52 -06:00
parent 165ea1c0da
commit 190b41f387
No known key found for this signature in database
GPG key ID: 87F211AF2BE4C2FE
3 changed files with 154 additions and 68 deletions

View file

@ -203,7 +203,7 @@ fn main() {
mouse_x = event.x;
mouse_y = event.y;
if mouse_left {
buffer.action(TextAction::Click {
buffer.action(TextAction::Drag {
x: mouse_x - line_x,
y: mouse_y
});