Ensure muiltibuffer anchors are contained within their excerpt ranges

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
Co-Authored-By: Antonio Scandurra <me@as-cii.com>
This commit is contained in:
committed 2021-12-15 10:52:27 -08:00
1 parent 822b9fbf64
commit 2fdf3937b3
3 files changed
+126 -79

No files matched your search

-7
View File
@@ -14,13 +14,6 @@ pub struct Anchor {
}
impl Anchor {
pub fn new(excerpt_id: ExcerptId, text_anchor: text::Anchor) -> Self {
Self {
excerpt_id,
text_anchor,
}
}
pub fn min() -> Self {
Self {
excerpt_id: ExcerptId::min(),