store buffer and display_map model handles on selections collection

This commit is contained in:
Keith Simmons 2022-05-12 15:55:18 -07:00
parent db0a9114c2
commit de9dc27980
14 changed files with 373 additions and 393 deletions

View file

@ -200,7 +200,7 @@ impl<'a> VimTestContext<'a> {
self.editor.read_with(self.cx, |editor, cx| {
let (empty_selections, non_empty_selections): (Vec<_>, Vec<_>) = editor
.selections
.interleaved::<usize>(&editor.buffer().read(cx).read(cx))
.interleaved::<usize>(cx)
.into_iter()
.partition_map(|selection| {
if selection.is_empty() {