aboutsummaryrefslogtreecommitdiff
path: root/src/client/shell/input.rs
diff options
context:
space:
mode:
authorCan Celik <ogulcancelik@gmail.com>2026-09-11 22:58:01 +0300
committerGitHub <noreply@github.com>2026-09-11 22:58:01 +0300
commita0474ae770ed185f6531a3c69ab64c60bed2c670 (patch)
treeae924822c99383aff5d40f11eb89fa21104194c8 /src/client/shell/input.rs
parentb11ac859c738b50ca569d9ac998d5baeeb30d33d (diff)
fix: preserve whole-word selection while dragging (#3969)
refs #1836
Diffstat (limited to 'src/client/shell/input.rs')
-rw-r--r--src/client/shell/input.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/shell/input.rs b/src/client/shell/input.rs
index 41a9f64c..8a3684a3 100644
--- a/src/client/shell/input.rs
+++ b/src/client/shell/input.rs
@@ -134,7 +134,7 @@ impl ClientShellState {
outcome.repaint = true;
return true;
}
- self.pending_word_selection = None;
+ self.word_selection_gesture = None;
if self.copy_or_terminal_mode() != ClientShellMode::Copy && self.selection.take().is_some()
{
self.stop_selection_autoscroll();
@@ -526,7 +526,7 @@ impl ClientShellState {
if matches!(key.code, KeyCode::Modifier(_)) {
return None;
}
- self.pending_word_selection = None;
+ self.word_selection_gesture = None;
if self.mode != ClientShellMode::Copy
&& self.copy_or_terminal_mode() != ClientShellMode::Copy
&& !self.config.copy_on_select