aboutsummaryrefslogtreecommitdiff
path: root/src/app/input/mod.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/input/mod.rs')
-rw-r--r--src/app/input/mod.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/app/input/mod.rs b/src/app/input/mod.rs
index bcd5da98..421b3738 100644
--- a/src/app/input/mod.rs
+++ b/src/app/input/mod.rs
@@ -408,6 +408,11 @@ 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 {