diff --git a/helix-term/src/commands.rs b/helix-term/src/commands.rs index e56c2b678c45..f5bf6bf1a065 100644 --- a/helix-term/src/commands.rs +++ b/helix-term/src/commands.rs @@ -1835,7 +1835,7 @@ fn make_search_word_bounded(cx: &mut Context) { } let msg = format!("register '{}' set to '{}'", '/', &new_regex); - cx.editor.registers.get_mut('/').push(new_regex); + cx.editor.registers.push('/', new_regex); cx.editor.set_status(msg); }