diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-11 02:46:41 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-07-11 02:46:58 +0300 |
| commit | 46174563489273199a17c982356c6e4674ef00d4 (patch) | |
| tree | e87a16bdb34e45b66124732c3458eed1e64d91a0 /src/app/input/mod.rs | |
| parent | 3b8aeee166d1594e1f8e41631a51748104d76834 (diff) | |
feat: add copy-on-select setting
Diffstat (limited to 'src/app/input/mod.rs')
| -rw-r--r-- | src/app/input/mod.rs | 5 |
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 { |
