Merge pull request #672 from zed-industries/fix-unfollowing-on-edit

Automatically unfollow leader only for edits that originate from the follower editor
This commit is contained in:
Nathan Sobo
2022-03-24 13:26:28 -06:00
committed by GitHub
11 changed files with 563 additions and 463 deletions
+2 -2
View File
@@ -360,7 +360,7 @@ impl SearchBar {
cx: &mut ViewContext<Self>,
) {
match event {
editor::Event::Edited { .. } => {
editor::Event::BufferEdited { .. } => {
self.query_contains_error = false;
self.clear_matches(cx);
self.update_matches(true, cx);
@@ -377,7 +377,7 @@ impl SearchBar {
cx: &mut ViewContext<Self>,
) {
match event {
editor::Event::Edited { .. } => self.update_matches(false, cx),
editor::Event::BufferEdited { .. } => self.update_matches(false, cx),
editor::Event::SelectionsChanged { .. } => self.update_match_index(cx),
_ => {}
}