WIP: Replace ropey with our own Rope

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra
2021-05-14 18:30:47 +02:00
co-authored by Nathan Sobo
parent 2f5754db63
commit 2cdf315d95
6 changed files with 220 additions and 243 deletions
+2 -1
View File
@@ -3,6 +3,7 @@ use super::{
Anchor, Buffer, DisplayPoint, Edit, Point, ToOffset,
};
use crate::{
editor::rope,
sum_tree::{self, Cursor, FilterCursor, SeekBias, SumTree},
time,
};
@@ -607,7 +608,7 @@ pub struct Chars<'a> {
cursor: Cursor<'a, Transform, DisplayOffset, TransformSummary>,
offset: usize,
buffer: &'a Buffer,
buffer_chars: Option<Take<ropey::iter::Chars<'a>>>,
buffer_chars: Option<Take<rope::Chars<'a>>>,
}
impl<'a> Iterator for Chars<'a> {