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-term | |
parent | 8634e04a31f8f761b3d0505528295d31d63c7918 (diff) |
Misc fixes and clean up of line ending detect code.
Diffstat (limited to 'helix-term')
-rw-r--r-- | helix-term/src/ui/editor.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/helix-term/src/ui/editor.rs b/helix-term/src/ui/editor.rs index 42bb3ba8..da8f0f53 100644 --- a/helix-term/src/ui/editor.rs +++ b/helix-term/src/ui/editor.rs @@ -7,9 +7,9 @@ use crate::{ }; use helix_core::{ - coords_at_pos, rope_slice_to_line_ending, + coords_at_pos, syntax::{self, HighlightEvent}, - Position, Range, + LineEnding, Position, Range, }; use helix_view::input::{KeyCode, KeyEvent, KeyModifiers}; use helix_view::{document::Mode, Document, Editor, Theme, View}; @@ -177,7 +177,7 @@ impl EditorView { // iterate over range char by char for grapheme in RopeGraphemes::new(text) { - if rope_slice_to_line_ending(&grapheme).is_some() { + if LineEnding::from_rope_slice(&grapheme).is_some() { visual_x = 0; line += 1; |