aboutsummaryrefslogtreecommitdiff
path: root/helix-view/src/document.rs
diff options
context:
space:
mode:
authorNathan Vegdahl2021-06-21 17:29:29 +0000
committerNathan Vegdahl2021-06-21 17:29:29 +0000
commit07e28802f6b61a17e839d05b2a031575f323b9c9 (patch)
treecf28b772ad9b43a125a27dc3018ac09ba1bb2e16 /helix-view/src/document.rs
parent714002048cc9601bf0981435c6d3ad43d1c765e8 (diff)
Add function to get the line ending of a str slice.
This is needed in some places.
Diffstat (limited to 'helix-view/src/document.rs')
-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 945271ea..bd45db5a 100644
--- a/helix-view/src/document.rs
+++ b/helix-view/src/document.rs
@@ -7,9 +7,9 @@ use std::str::FromStr;
use std::sync::Arc;
use helix_core::{
- auto_detect_line_ending,
chars::{char_is_line_ending, char_is_whitespace},
history::History,
+ line_ending::auto_detect_line_ending,
syntax::{self, LanguageConfiguration},
ChangeSet, Diagnostic, LineEnding, Rope, Selection, State, Syntax, Transaction,
DEFAULT_LINE_ENDING,