summaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/commands.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs
index b6ae0138..d75cb6ff 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -622,7 +622,7 @@ fn _search(doc: &mut Document, view_id: ViewId, contents: &str, regex: &Regex, e
let end = text.byte_to_char(mat.end());
let selection = if extend {
- selection.clone().add(Range::new(start, end - 1))
+ selection.clone().push(Range::new(start, end - 1))
} else {
Selection::single(start, end - 1)
};