Fix vim code working on display map chars (#10103)

Release Notes:

- vim: Fixed motion bugs when softwrap, folds or inlay hints were used.
This commit is contained in:
Conrad Irwin authored and GitHub committed 2024-04-02 22:16:52 -06:00
1 parent bd2cdee07d
commit cf11a67d34
9 files changed
+95 -140

No files matched your search

+3
View File
@@ -137,3 +137,6 @@ impl AnchorRangeExt for Range<Anchor> {
self.start.to_point(content)..self.end.to_point(content)
}
}
#[derive(Clone, Copy, Eq, PartialEq, Debug, Hash, Ord, PartialOrd)]
pub struct Offset(pub usize);
+1 -1
View File
@@ -1,6 +1,6 @@
mod anchor;
pub use anchor::{Anchor, AnchorRangeExt};
pub use anchor::{Anchor, AnchorRangeExt, Offset};
use anyhow::{anyhow, Result};
use clock::ReplicaId;
use collections::{BTreeMap, Bound, HashMap, HashSet};