aboutsummaryrefslogtreecommitdiff
path: root/helix-core/src/object.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-06-30 14:45:15 +0000
committerNathan Vegdahl2021-07-01 21:22:28 +0000
commit7c7be6d58326725954be7bd16fa3ff5e84610c17 (patch)
tree9bff2a3e27a732f5e2fc53e0f951e0dc08712c3c /helix-core/src/object.rs
parent0ae522f3df433bb778fa2ff98fd3d7047021c6ef (diff)
Make `Selection`'s normalize and transform methods self-consuming only.
Diffstat (limited to 'helix-core/src/object.rs')
-rw-r--r--helix-core/src/object.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-core/src/object.rs b/helix-core/src/object.rs
index 863b6e55..950b7592 100644
--- a/helix-core/src/object.rs
+++ b/helix-core/src/object.rs
@@ -6,7 +6,7 @@ use smallvec::smallvec;
pub fn expand_selection(syntax: &Syntax, text: RopeSlice, selection: &Selection) -> Selection {
let tree = syntax.tree();
- selection.clone().transformed(|range| {
+ selection.clone().transform(|range| {
let from = text.char_to_byte(range.from());
let to = text.char_to_byte(range.to());