Use array::IntoIter.

pull/11/head
Blaž Hrastnik 4 years ago
parent 354b822d21
commit 5e6b46e7c5

@ -829,7 +829,7 @@ pub fn append_mode(cx: &mut Context) {
if selection.iter().any(|range| range.head == end) { if selection.iter().any(|range| range.head == end) {
let transaction = Transaction::change( let transaction = Transaction::change(
doc.text(), doc.text(),
vec![(end, end, Some(Tendril::from_char('\n')))].into_iter(), std::array::IntoIter::new([(end, end, Some(Tendril::from_char('\n')))]),
); );
doc.apply(&transaction, view.id); doc.apply(&transaction, view.id);
} }

Loading…
Cancel
Save