diff options
author | Nathan Vegdahl | 2021-06-20 07:40:41 +0000 |
---|---|---|
committer | Nathan Vegdahl | 2021-06-20 07:40:41 +0000 |
commit | 5d22e3c4e574eb24260966de7f20f582e6184e24 (patch) | |
tree | 7d5969855b6c98a66e8611b88f0b470ba9f5c18c /helix-view/src | |
parent | 8634e04a31f8f761b3d0505528295d31d63c7918 (diff) |
Misc fixes and clean up of line ending detect code.
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 44d50583..80be1ed2 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(DEFAULT_LINE_ENDING.as_str()) + 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))?; |