From 1f1b20cb5d2a62437e1b21e237164478f9582f52 Mon Sep 17 00:00:00 2001 From: akbash Date: Wed, 9 Sep 2026 22:37:53 +0300 Subject: 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> --- src/client/shell/mouse.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/client/shell/mouse.rs') 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 { -- cgit v1.2.3