aboutsummaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorAlex2023-06-16 17:02:15 +0000
committerGitHub2023-06-16 17:02:15 +0000
commit3fb9fafb2a366d004a04aa3d45d52e3ecfb57241 (patch)
tree170c649b6ef245fae3e530188014b26ab65d7ac4 /helix-term
parentdf094909d17469ded9782bd3fa714a7c34f20cd6 (diff)
Add config for default line ending (#5621)
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/tests/test/auto_pairs.rs2
-rw-r--r--helix-term/tests/test/helpers.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/helix-term/tests/test/auto_pairs.rs b/helix-term/tests/test/auto_pairs.rs
index e10e0840..ada488fc 100644
--- a/helix-term/tests/test/auto_pairs.rs
+++ b/helix-term/tests/test/auto_pairs.rs
@@ -2,7 +2,7 @@ use helix_core::{auto_pairs::DEFAULT_PAIRS, hashmap};
use super::*;
-const LINE_END: &str = helix_core::DEFAULT_LINE_ENDING.as_str();
+const LINE_END: &str = helix_core::NATIVE_LINE_ENDING.as_str();
fn differing_pairs() -> impl Iterator<Item = &'static (char, char)> {
DEFAULT_PAIRS.iter().filter(|(open, close)| open != close)
diff --git a/helix-term/tests/test/helpers.rs b/helix-term/tests/test/helpers.rs
index 30fe7d0e..6466bc76 100644
--- a/helix-term/tests/test/helpers.rs
+++ b/helix-term/tests/test/helpers.rs
@@ -244,7 +244,7 @@ pub fn test_editor_config() -> helix_view::editor::Config {
/// character, and if one doesn't exist already, appends the system's
/// appropriate line ending to the end of a string.
pub fn platform_line(input: &str) -> String {
- let line_end = helix_core::DEFAULT_LINE_ENDING.as_str();
+ let line_end = helix_core::NATIVE_LINE_ENDING.as_str();
// we can assume that the source files in this code base will always
// be LF, so indoc strings will always insert LF