Release Notes:

- vim: Added support for the changelist. `g;` and `g,` to the
previous/next change
- vim: Added support for the `'.` mark
- vim: Added support for `gi` to resume the previous insert
This commit is contained in:
Conrad Irwin 2024-05-09 21:18:56 -06:00 committed by GitHub
parent 4f9ba28a25
commit 45f12b9426
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 326 additions and 10 deletions

View file

@ -477,6 +477,11 @@ impl DisplaySnapshot {
.to_inlay_offset(anchor.to_offset(&self.buffer_snapshot))
}
pub fn display_point_to_anchor(&self, point: DisplayPoint, bias: Bias) -> Anchor {
self.buffer_snapshot
.anchor_at(point.to_offset(&self, bias), bias)
}
fn display_point_to_inlay_point(&self, point: DisplayPoint, bias: Bias) -> InlayPoint {
let block_point = point.0;
let wrap_point = self.block_snapshot.to_wrap_point(block_point);