From 3fb9fafb2a366d004a04aa3d45d52e3ecfb57241 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 16 Jun 2023 19:02:15 +0200 Subject: Add config for default line ending (#5621) --- helix-term/tests/test/auto_pairs.rs | 2 +- helix-term/tests/test/helpers.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-term/tests/test') 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 { 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 -- cgit v1.2.3-70-g09d2