pull/8675/merge^2
piotrkwarcinski 2025-05-10 14:49:04 +02:00
parent 63086eecf7
commit edcb630075
1 changed files with 5 additions and 4 deletions

View File

@ -3072,12 +3072,13 @@ fn cx_is_document_in_view(cx: &mut Context, doc_id: DocumentId) -> Option<helix_
}
fn cx_register_value(cx: &mut Context, name: char) -> Vec<String> {
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 {