aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/commands.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index c8f64531..e3ebd128 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -1227,8 +1227,7 @@ fn search_impl(
Movement::Extend => selection.clone().push(Range::new(start, end)),
Movement::Move => selection
.clone()
- .remove(selection.primary_index())
- .push(Range::new(start, end)),
+ .replace(selection.primary_index(), Range::new(start, end)),
};
doc.set_selection(view.id, selection);