Reimplement BlockSnapshot::{clip_point,to_block_point,max_point}

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld 2021-11-17 12:54:14 -08:00
parent e60500dd7c
commit 1c3bf90a8a
2 changed files with 152 additions and 105 deletions

View file

@ -214,7 +214,6 @@ impl DisplayMapSnapshot {
self.tabs_snapshot
.to_tab_point(point.to_fold_point(&self.folds_snapshot, bias)),
),
bias,
),
)
}