diff options
author | Jan Hrastnik | 2021-06-19 23:24:36 +0000 |
---|---|---|
committer | Jan Hrastnik | 2021-06-19 23:24:36 +0000 |
commit | 701eb0dd6800e75116f36e503787dd0f50df709e (patch) | |
tree | 0f17888a021104cdc8055047fe0b17077b09ef65 /helix-view/src | |
parent | 1e80fbb6020c75bdc5d7e3edc9513b4ed52c4e6b (diff) |
changed some hardcoded newlines, removed a else if in line_ending.rs
Diffstat (limited to 'helix-view/src')
-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 49d270e4..44d50583 100644 --- a/helix-view/src/document.rs +++ b/helix-view/src/document.rs @@ -255,7 +255,7 @@ impl Document { use std::{fs::File, io::BufReader}; let doc = if !path.exists() { - Rope::from("\n") + Rope::from(DEFAULT_LINE_ENDING.as_str()) } else { let file = File::open(&path).context(format!("unable to open {:?}", path))?; let mut doc = Rope::from_reader(BufReader::new(file))?; |