@@ -1009,7 +1009,7 @@ fn append_mode(cx: &mut Context) {
1009 if selection.iter().any(|range| range.head == end) {
1009 if selection.iter().any(|range| range.head == end) {
1010 let transaction = Transaction::change(
1010 let transaction = Transaction::change(
1011 doc.text(),
1011 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()))]),
1014 doc.apply(&transaction, view.id);
1014 doc.apply(&transaction, view.id);
@@ -2349,7 +2349,7 @@ pub mod insert {
2350 let indent = doc.indent_unit().repeat(indent_level);
2350 let indent = doc.indent_unit().repeat(indent_level);
2351 let mut text = String::with_capacity(1 + indent.len());
2351 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());
2353 text.push_str(&indent);
2353 text.push_str(&indent);
2355 let head = pos + offs + text.chars().count();
2355 let head = pos + offs + text.chars().count();
@@ -2370,7 +2370,7 @@ pub mod insert {
2370 if helix_core::auto_pairs::PAIRS.contains(&(prev, curr)) {
2370 if helix_core::auto_pairs::PAIRS.contains(&(prev, curr)) {
2371 // another newline, indent the end bracket one level less
2371 // another newline, indent the end bracket one level less
2372 let indent = doc.indent_unit().repeat(indent_level.saturating_sub(1));
2372 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());
2374 text.push_str(&indent);
2374 text.push_str(&indent);
@@ -2537,7 +2537,7 @@ fn paste_impl(
2537 // if any of values ends \n it's linewise paste
2537 // if any of values ends \n it's linewise paste
2538 let linewise = values
2538 let linewise = values
2540− .any(|value| value.ends_with(doc.line_ending().as_str()));
2540+ .any(|value| value.ends_with(doc.line_ending.as_str()));
2542 let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);
2542 let mut values = values.iter().cloned().map(Tendril::from).chain(repeat);