Make new documents empty, rather than starting with a line ending.

This commit is contained in:
Nathan Vegdahl 2021-07-01 23:39:49 -07:00
parent 22dca3b111
commit 7961a13007

View file

@ -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)
}
}