aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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 0e39f0f2..52ffefbb 100644
--- a/helix-term/src/commands.rs
+++ b/helix-term/src/commands.rs
@@ -479,7 +479,7 @@ pub fn replace(cx: &mut Context) {
.map(|c| if c == '\n' { '\n' } else { ch })
.collect();
- (range.from(), to, Some(text.as_str().into()))
+ (range.from(), to, Some(text.into()))
});
doc.apply(&transaction, view.id);