From 7961a13007b90840f08390d1ab9822ebbb0740c5 Mon Sep 17 00:00:00 2001 From: Nathan Vegdahl Date: Thu, 1 Jul 2021 23:39:49 -0700 Subject: [PATCH] Make new documents empty, rather than starting with a line ending. --- helix-view/src/document.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 9b6094298..bc15da96e 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -1036,7 +1036,7 @@ impl Document { impl Default for Document { fn default() -> Self { - let text = Rope::from(DEFAULT_LINE_ENDING.as_str()); + let text = Rope::from(""); Self::from(text, None) } }