Position blocks above/below buffer lines, even when the anchored line is soft-wrapped

Co-Authored-By: Max Brunsfeld <maxbrunsfeld@gmail.com>
This commit is contained in:
Nathan Sobo 2021-11-15 16:45:51 -07:00
parent 2cb8b0fcd3
commit 862b988d56
4 changed files with 58 additions and 18 deletions

View file

@ -210,7 +210,7 @@ impl DisplayMapSnapshot {
fn point_to_display_point(&self, point: Point, bias: Bias) -> DisplayPoint {
DisplayPoint(
self.blocks_snapshot.to_block_point(
self.wraps_snapshot.to_wrap_point(
self.wraps_snapshot.from_tab_point(
self.tabs_snapshot
.to_tab_point(point.to_fold_point(&self.folds_snapshot, bias)),
),