diff options
Diffstat (limited to 'src/app/input/mod.rs')
| -rw-r--r-- | src/app/input/mod.rs | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs index 21e9a49b..73ddbefd 100644 --- a/src/app/input/mod.rs +++ b/src/app/input/mod.rs @@ -361,6 +361,15 @@ impl App { } } } + if matches!(mouse.kind, MouseEventKind::Down(MouseButton::Left)) + && self + .state + .selection + .as_ref() + .is_none_or(crate::selection::Selection::is_in_progress) + { + self.selection_highlight_clear_deadline = None; + } } if previous_settings_section != crate::app::state::SettingsSection::Integrations && self.state.settings.section == crate::app::state::SettingsSection::Integrations @@ -482,11 +491,6 @@ impl App { } fn handle_pane_double_click(&mut self, mouse: MouseEvent) -> bool { - if !self.state.copy_on_select { - self.last_pane_click = None; - return false; - } - // A pane press stops being a double-click candidate once it becomes // a drag or completes as a real text selection. match mouse.kind { |
