diff options
| author | akbash <akbash@herdr.dev> | 2026-09-09 22:37:53 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-09-09 22:37:53 +0300 |
| commit | 1f1b20cb5d2a62437e1b21e237164478f9582f52 (patch) | |
| tree | 1915b0e64cd0feee72c21c290cc1afcf9eb12fc7 /src/client/shell/mouse.rs | |
| parent | 1682cab3263b27b296f477552a4e79ab54923091 (diff) | |
fix: retain double-click selections and make tests root-safe (#3854)
refs #3847
Co-authored-by: akbash-bot <300245827+akbash-bot@users.noreply.github.com>
Diffstat (limited to 'src/client/shell/mouse.rs')
| -rw-r--r-- | src/client/shell/mouse.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/client/shell/mouse.rs b/src/client/shell/mouse.rs index ec231c92..24310907 100644 --- a/src/client/shell/mouse.rs +++ b/src/client/shell/mouse.rs @@ -1665,7 +1665,11 @@ impl ClientShellState { if copied && self.config.copy_on_select { self.request_selection_copy(outcome, false); self.selection = None; - } else if !copied { + } else if self + .selection + .as_ref() + .is_some_and(crate::selection::Selection::is_just_click) + { self.selection = None; } if copied { |
