From e99a875924faacad87c6c71265b79a4947ae5f91 Mon Sep 17 00:00:00 2001 From: diegostafa Date: Wed, 1 May 2024 17:43:12 +0200 Subject: [PATCH] remove unnecessary event --- helix-term/src/ui/editor.rs | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 21dfceda3..ba7897c0c 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -1179,19 +1179,6 @@ impl EditorView { EventResult::Ignored(None) } - MouseEventKind::Moved if cxt.editor.mode == Mode::Select => { - if let Some((view_id, pos, false, false)) = - coords_info(cxt.editor, row, column, true) - { - cxt.editor.focus(view_id); - doc_mut!(cxt.editor).set_selection(view_id, Selection::point(pos)); - commands::MappableCommand::extend_to_word.execute(cxt); - cxt.editor.ensure_cursor_in_view(view_id); - return EventResult::Consumed(None); - } - EventResult::Ignored(None) - } - MouseEventKind::Down(MouseButton::Right) => { if let Some((view_id, pos, false, false)) = coords_info(cxt.editor, row, column, true)