diff options
author | Nathan Vegdahl | 2021-07-02 06:39:49 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-07-02 06:39:49 +0000 |
commit | 7961a13007b90840f08390d1ab9822ebbb0740c5 (patch) | |
tree | 7441c45a638082deee5960be49c4ed3736cacf48 /helix-view | |
parent | 22dca3b111513f4dc0852acf0bfb0229a8661904 (diff) |
Make new documents empty, rather than starting with a line ending.
Diffstat (limited to 'helix-view')
-rw-r--r-- | helix-view/src/document.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helix-view/src/document.rs b/helix-view/src/document.rs index 9b609429..bc15da96 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) } } |