Combine updates from multiple view events when updating followers

Co-Authored-By: Nathan Sobo <nathan@zed.dev>
This commit is contained in:
Max Brunsfeld
2022-03-22 16:22:42 -07:00
co-authored by Nathan Sobo
parent fc811e0856
commit 4435d9b106
3 changed files with 95 additions and 52 deletions
+3
View File
@@ -4349,9 +4349,12 @@ mod tests {
.condition(cx_b, |editor, cx| editor.text(cx) == "TWO")
.await;
eprintln!("=========================>>>>>>>>");
editor_a1.update(cx_a, |editor, cx| {
editor.select_ranges([3..3], None, cx);
editor.set_scroll_position(vec2f(0., 100.), cx);
});
eprintln!("=========================<<<<<<<<<");
editor_b1
.condition(cx_b, |editor, cx| editor.selected_ranges(cx) == vec![3..3])
.await;