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-core/src/line_ending.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'helix-core/src/line_ending.rs') diff --git a/helix-core/src/line_ending.rs b/helix-core/src/line_ending.rs index 953d567d..36c02a94 100644 --- a/helix-core/src/line_ending.rs +++ b/helix-core/src/line_ending.rs @@ -1,9 +1,9 @@ use crate::{Rope, RopeSlice}; #[cfg(target_os = "windows")] -pub const DEFAULT_LINE_ENDING: LineEnding = LineEnding::Crlf; +pub const NATIVE_LINE_ENDING: LineEnding = LineEnding::Crlf; #[cfg(not(target_os = "windows"))] -pub const DEFAULT_LINE_ENDING: LineEnding = LineEnding::LF; +pub const NATIVE_LINE_ENDING: LineEnding = LineEnding::LF; /// Represents one of the valid Unicode line endings. #[derive(PartialEq, Eq, Copy, Clone, Debug)] -- cgit v1.2.3-70-g09d2