aboutsummaryrefslogtreecommitdiff
path: root/helix-view
diff options
context:
space:
mode:
authorNathan Vegdahl2021-07-02 06:39:49 +0000
committerNathan Vegdahl2021-07-02 06:39:49 +0000
commit7961a13007b90840f08390d1ab9822ebbb0740c5 (patch)
tree7441c45a638082deee5960be49c4ed3736cacf48 /helix-view
parent22dca3b111513f4dc0852acf0bfb0229a8661904 (diff)
Make new documents empty, rather than starting with a line ending.
Diffstat (limited to 'helix-view')
-rw-r--r--helix-view/src/document.rs2
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)
}
}