diff --git a/helix-term/src/commands/engine/steel.rs b/helix-term/src/commands/engine/steel.rs index 5f9f085be..5a885fd8b 100644 --- a/helix-term/src/commands/engine/steel.rs +++ b/helix-term/src/commands/engine/steel.rs @@ -3072,12 +3072,13 @@ fn cx_is_document_in_view(cx: &mut Context, doc_id: DocumentId) -> Option Vec { - let items = cx - .editor + cx.editor .registers .read(name, cx.editor) - .map_or(Vec::new(), |reg| reg.collect()); - items.into_iter().map(|value| value.to_string()).collect() + .map_or(Vec::new(), |reg| reg.collect()) + .into_iter() + .map(|value| value.to_string()) + .collect() } fn cx_document_exists(cx: &mut Context, doc_id: DocumentId) -> bool {