diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index 0e39f0f20..52ffefbbe 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);