@@ -1009,7 +1009,7 @@ fn append_mode(cx: &mut Context) {
10091009 if selection.iter().any(|range| range.head == end) {
10101010 let transaction = Transaction::change(
10111011 doc.text(),
1012− std::array::IntoIter::new([(end, end, Some(doc.line_ending().as_str().into()))]),
1012+ std::array::IntoIter::new([(end, end, Some(doc.line_ending.as_str().into()))]),
10131013 );
10141014 doc.apply(&transaction, view.id);
10151015 }
@@ -2349,7 +2349,7 @@ pub mod insert {
23492349 );
23502350 let indent = doc.indent_unit().repeat(indent_level);
23512351 let mut text = String::with_capacity(1 + indent.len());
2352− text.push_str(doc.line_ending().as_str());
2352+ text.push_str(doc.line_ending.as_str());
23532353 text.push_str(&indent);
23542354
23552355 let head = pos + offs + text.chars().count();
@@ -2370,7 +2370,7 @@ pub mod insert {
23702370 if helix_core::auto_pairs::PAIRS.contains(&(prev, curr)) {
23712371 // another newline, indent the end bracket one level less
23722372 let indent = doc.indent_unit().repeat(indent_level.saturating_sub(1));
2373− text.push_str(doc.line_ending().as_str());
2373+ text.push_str(doc.line_ending.as_str());
23742374 text.push_str(&indent);
23752375 }
23762376
@@ -2537,7 +2537,7 @@ fn paste_impl(
25372537 // if any of values ends \n it's linewise paste
25382538 let linewise = values
25392539 .iter()
2540− .any(|value| value.ends_with(doc.line_ending().as_str()));
2540+ .any(|value| value.ends_with(doc.line_ending.as_str()));
25412541
25422542 let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);
25432543