mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-12-01 11:23:10 +03:00
Use array::IntoIter.
This commit is contained in:
parent
354b822d21
commit
5e6b46e7c5
@ -829,7 +829,7 @@ pub fn append_mode(cx: &mut Context) {
|
||||
if selection.iter().any(|range| range.head == end) {
|
||||
let transaction = Transaction::change(
|
||||
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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user