diff options
Diffstat (limited to 'default-plugins')
-rw-r--r-- | default-plugins/strider/src/main.rs | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/default-plugins/strider/src/main.rs b/default-plugins/strider/src/main.rs index 4aca9354e..75f03513d 100644 --- a/default-plugins/strider/src/main.rs +++ b/default-plugins/strider/src/main.rs @@ -58,14 +58,12 @@ impl ZellijPlugin for State { Mouse::ScrollUp(_) => { *self.selected_mut() = self.selected().saturating_sub(1); } - Mouse::Release(Some((line, _))) => { + Mouse::Release(line, _) => { if line < 0 { return; } let mut should_select = true; - if let Some((Event::Mouse(Mouse::Release(Some((prev_line, _)))), t)) = - prev_event - { + if let Some((Event::Mouse(Mouse::Release(prev_line, _)), t)) = prev_event { if prev_line == line && Instant::now().saturating_duration_since(t).as_millis() < 400 { |