Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Antonio Scandurra 2021-11-11 16:00:52 +01:00
parent b2caf9e905
commit 59bbe43a46
3 changed files with 91 additions and 602 deletions

View file

@ -1,6 +1,5 @@
mod block_map;
mod fold_map;
mod injection_map;
mod tab_map;
mod wrap_map;
@ -53,7 +52,7 @@ impl DisplayMap {
pub fn snapshot(&self, cx: &mut ModelContext<Self>) -> DisplayMapSnapshot {
let (folds_snapshot, edits) = self.fold_map.read(cx);
let (tabs_snapshot, edits) = self.tab_map.sync(folds_snapshot.clone(), edits);
let wraps_snapshot = self
let (wraps_snapshot, _) = self
.wrap_map
.update(cx, |map, cx| map.sync(tabs_snapshot.clone(), edits, cx));
DisplayMapSnapshot {