From 2edb80eaf9bbf05c657f0dab656f0c24b32b181a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kacper=20Macio=C5=82ek?= Date: Mon, 24 Jun 2024 23:40:44 +0200 Subject: [PATCH] selection p3 --- src/app.rs | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app.rs b/src/app.rs index 6b61663..69a9273 100644 --- a/src/app.rs +++ b/src/app.rs @@ -252,6 +252,11 @@ impl App { return; } + if is_selection && !self.is_selecting { + self.is_selecting = true; + self.selecting_position = self.get_cursor_position(); + } + if self.status != DEFAULT_STATUS { self.status = DEFAULT_STATUS.into(); }