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:
parent
2cb8b0fcd3
commit
862b988d56
4 changed files with 58 additions and 18 deletions
|
@ -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)),
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue